[{"data":1,"prerenderedAt":17226,"buildId":17227},["ShallowReactive",2],{"-docs-auto-form-field-types-description":3,"component-example-autoFormFieldBooleanCheckboxExample":16,"component-example-autoFormFieldBooleanCheckboxExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":20,"component-example-autoFormFieldBooleanSwitchExample":760,"component-example-autoFormFieldBooleanSwitchExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":764,"component-example-autoFormFieldBooleanToggleExample":1354,"component-example-autoFormFieldBooleanToggleExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":1358,"component-example-autoFormFieldDatePickerExample":1804,"component-example-autoFormFieldDatePickerExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":1808,"component-example-autoFormFieldDateRangeExample":2538,"component-example-autoFormFieldDateRangeExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":2542,"component-example-autoFormFieldEnumRadioGroupExample":3201,"component-example-autoFormFieldEnumRadioGroupExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":3205,"component-example-autoFormFieldEnumSelectExample":3935,"component-example-autoFormFieldEnumSelectExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":3939,"component-example-autoFormFieldEnumSelectMenuExample":4552,"component-example-autoFormFieldEnumSelectMenuExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":4556,"component-example-autoFormFieldFileMultipleExample":5243,"component-example-autoFormFieldFileMultipleExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":5247,"component-example-autoFormFieldFileSingleExample":5945,"component-example-autoFormFieldFileSingleExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":5949,"component-example-autoFormFieldInputDateExample":6535,"component-example-autoFormFieldInputDateExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":6539,"component-example-autoFormFieldInputDateRangeExample":7144,"component-example-autoFormFieldInputDateRangeExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":7148,"component-example-autoFormFieldInputTimeExample":7783,"component-example-autoFormFieldInputTimeExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":7787,"component-example-autoFormFieldIsoExample":8564,"component-example-autoFormFieldIsoExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":8568,"component-example-autoFormFieldNumberInputExample":9316,"component-example-autoFormFieldNumberInputExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":9320,"component-example-autoFormFieldNumberInputRatingExample":9972,"component-example-autoFormFieldNumberInputRatingExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":9976,"component-example-autoFormFieldNumberSliderExample":10665,"component-example-autoFormFieldNumberSliderExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":10669,"component-example-autoFormFieldStringInputExample":11318,"component-example-autoFormFieldStringInputExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":11322,"component-example-autoFormFieldStringInputMenuExample":11989,"component-example-autoFormFieldStringInputMenuExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":11993,"component-example-autoFormFieldStringPinInputExample":12759,"component-example-autoFormFieldStringPinInputExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":12763,"component-example-autoFormFieldStringTextareaExample":13405,"component-example-autoFormFieldStringTextareaExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":13409,"component-example-autoFormFieldStringTypeExample":14066,"component-example-autoFormFieldStringTypeExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":14070,"component-example-autoFormFieldToggleGroupExample":15182,"component-example-autoFormFieldToggleGroupExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":15186,"docs--docs-auto-form-field-types":15848,"docs-navigation-zh-CN":17010,"mdc-d0lvp9-key":17207,"surround--docs-auto-form-field-types":17223},{"data":4,"body":5},{},{"type":6,"children":7},"root",[8],{"type":9,"tag":10,"props":11,"children":12},"element","p",{},[13],{"type":14,"value":15},"text","afz 各字段类型到控件的映射与配置。",{"code":17,"filePath":18,"pascalName":19},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  agree: afz.boolean({\n    controlProps: {\n      label: '我已阅读并同意服务条款'\n    }\n  })\n    .refine(val => val === true, '必须同意条款才能继续')\n    .meta({\n      label: '复选框'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Ffield-types\u002FAutoFormFieldBooleanCheckboxExample.vue","AutoFormFieldBooleanCheckboxExample",{"data":21,"body":23,"toc":758},{"title":22,"description":22},"",{"type":6,"children":24},[25,752],{"type":9,"tag":26,"props":27,"children":28},"code-collapse",{},[29],{"type":9,"tag":30,"props":31,"children":35},"pre",{"className":32,"code":33,"language":34,"meta":22,"style":22},"language-vue shiki shiki-themes github-light github-light github-dark","\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  agree: afz.boolean({\n    controlProps: {\n      label: '我已阅读并同意服务条款'\n    }\n  })\n    .refine(val => val === true, '必须同意条款才能继续')\n    .meta({\n      label: '复选框'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n\n","vue",[36],{"type":9,"tag":37,"props":38,"children":39},"code",{"__ignoreMap":22},[40,85,115,141,151,190,217,225,257,275,284,298,307,316,376,393,406,415,424,432,503,521,540,558,604,612,621,638,646,663,736],{"type":9,"tag":41,"props":42,"children":45},"span",{"class":43,"line":44},"line",1,[46,52,58,64,69,75,80],{"type":9,"tag":41,"props":47,"children":49},{"style":48},"--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8",[50],{"type":14,"value":51},"\u003C",{"type":9,"tag":41,"props":53,"children":55},{"style":54},"--shiki-light:#22863A;--shiki-default:#22863A;--shiki-dark:#85E89D",[56],{"type":14,"value":57},"script",{"type":9,"tag":41,"props":59,"children":61},{"style":60},"--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#B392F0",[62],{"type":14,"value":63}," lang",{"type":9,"tag":41,"props":65,"children":66},{"style":48},[67],{"type":14,"value":68},"=",{"type":9,"tag":41,"props":70,"children":72},{"style":71},"--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#9ECBFF",[73],{"type":14,"value":74},"\"ts\"",{"type":9,"tag":41,"props":76,"children":77},{"style":60},[78],{"type":14,"value":79}," setup",{"type":9,"tag":41,"props":81,"children":82},{"style":48},[83],{"type":14,"value":84},">\n",{"type":9,"tag":41,"props":86,"children":88},{"class":43,"line":87},2,[89,95,100,105,110],{"type":9,"tag":41,"props":90,"children":92},{"style":91},"--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#F97583",[93],{"type":14,"value":94},"import",{"type":9,"tag":41,"props":96,"children":97},{"style":91},[98],{"type":14,"value":99}," type",{"type":9,"tag":41,"props":101,"children":102},{"style":48},[103],{"type":14,"value":104}," { FormSubmitEvent } ",{"type":9,"tag":41,"props":106,"children":107},{"style":91},[108],{"type":14,"value":109},"from",{"type":9,"tag":41,"props":111,"children":112},{"style":71},[113],{"type":14,"value":114}," '@nuxt\u002Fui'\n",{"type":9,"tag":41,"props":116,"children":118},{"class":43,"line":117},3,[119,123,127,132,136],{"type":9,"tag":41,"props":120,"children":121},{"style":91},[122],{"type":14,"value":94},{"type":9,"tag":41,"props":124,"children":125},{"style":91},[126],{"type":14,"value":99},{"type":9,"tag":41,"props":128,"children":129},{"style":48},[130],{"type":14,"value":131}," { z } ",{"type":9,"tag":41,"props":133,"children":134},{"style":91},[135],{"type":14,"value":109},{"type":9,"tag":41,"props":137,"children":138},{"style":71},[139],{"type":14,"value":140}," 'zod'\n",{"type":9,"tag":41,"props":142,"children":144},{"class":43,"line":143},4,[145],{"type":9,"tag":41,"props":146,"children":148},{"emptyLinePlaceholder":147},true,[149],{"type":14,"value":150},"\n",{"type":9,"tag":41,"props":152,"children":154},{"class":43,"line":153},5,[155,160,165,171,176,180,185],{"type":9,"tag":41,"props":156,"children":157},{"style":91},[158],{"type":14,"value":159},"const",{"type":9,"tag":41,"props":161,"children":162},{"style":48},[163],{"type":14,"value":164}," { ",{"type":9,"tag":41,"props":166,"children":168},{"style":167},"--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF",[169],{"type":14,"value":170},"afz",{"type":9,"tag":41,"props":172,"children":173},{"style":48},[174],{"type":14,"value":175}," } ",{"type":9,"tag":41,"props":177,"children":178},{"style":91},[179],{"type":14,"value":68},{"type":9,"tag":41,"props":181,"children":182},{"style":60},[183],{"type":14,"value":184}," useAutoForm",{"type":9,"tag":41,"props":186,"children":187},{"style":48},[188],{"type":14,"value":189},"()\n",{"type":9,"tag":41,"props":191,"children":193},{"class":43,"line":192},6,[194,198,203,208,213],{"type":9,"tag":41,"props":195,"children":196},{"style":91},[197],{"type":14,"value":159},{"type":9,"tag":41,"props":199,"children":200},{"style":167},[201],{"type":14,"value":202}," toast",{"type":9,"tag":41,"props":204,"children":205},{"style":91},[206],{"type":14,"value":207}," =",{"type":9,"tag":41,"props":209,"children":210},{"style":60},[211],{"type":14,"value":212}," useToast",{"type":9,"tag":41,"props":214,"children":215},{"style":48},[216],{"type":14,"value":189},{"type":9,"tag":41,"props":218,"children":220},{"class":43,"line":219},7,[221],{"type":9,"tag":41,"props":222,"children":223},{"emptyLinePlaceholder":147},[224],{"type":14,"value":150},{"type":9,"tag":41,"props":226,"children":228},{"class":43,"line":227},8,[229,233,238,242,247,252],{"type":9,"tag":41,"props":230,"children":231},{"style":91},[232],{"type":14,"value":159},{"type":9,"tag":41,"props":234,"children":235},{"style":167},[236],{"type":14,"value":237}," schema",{"type":9,"tag":41,"props":239,"children":240},{"style":91},[241],{"type":14,"value":207},{"type":9,"tag":41,"props":243,"children":244},{"style":48},[245],{"type":14,"value":246}," afz.",{"type":9,"tag":41,"props":248,"children":249},{"style":60},[250],{"type":14,"value":251},"object",{"type":9,"tag":41,"props":253,"children":254},{"style":48},[255],{"type":14,"value":256},"({\n",{"type":9,"tag":41,"props":258,"children":260},{"class":43,"line":259},9,[261,266,271],{"type":9,"tag":41,"props":262,"children":263},{"style":48},[264],{"type":14,"value":265},"  agree: afz.",{"type":9,"tag":41,"props":267,"children":268},{"style":60},[269],{"type":14,"value":270},"boolean",{"type":9,"tag":41,"props":272,"children":273},{"style":48},[274],{"type":14,"value":256},{"type":9,"tag":41,"props":276,"children":278},{"class":43,"line":277},10,[279],{"type":9,"tag":41,"props":280,"children":281},{"style":48},[282],{"type":14,"value":283},"    controlProps: {\n",{"type":9,"tag":41,"props":285,"children":287},{"class":43,"line":286},11,[288,293],{"type":9,"tag":41,"props":289,"children":290},{"style":48},[291],{"type":14,"value":292},"      label: ",{"type":9,"tag":41,"props":294,"children":295},{"style":71},[296],{"type":14,"value":297},"'我已阅读并同意服务条款'\n",{"type":9,"tag":41,"props":299,"children":301},{"class":43,"line":300},12,[302],{"type":9,"tag":41,"props":303,"children":304},{"style":48},[305],{"type":14,"value":306},"    }\n",{"type":9,"tag":41,"props":308,"children":310},{"class":43,"line":309},13,[311],{"type":9,"tag":41,"props":312,"children":313},{"style":48},[314],{"type":14,"value":315},"  })\n",{"type":9,"tag":41,"props":317,"children":319},{"class":43,"line":318},14,[320,325,330,335,341,346,351,356,361,366,371],{"type":9,"tag":41,"props":321,"children":322},{"style":48},[323],{"type":14,"value":324},"    .",{"type":9,"tag":41,"props":326,"children":327},{"style":60},[328],{"type":14,"value":329},"refine",{"type":9,"tag":41,"props":331,"children":332},{"style":48},[333],{"type":14,"value":334},"(",{"type":9,"tag":41,"props":336,"children":338},{"style":337},"--shiki-light:#E36209;--shiki-default:#E36209;--shiki-dark:#FFAB70",[339],{"type":14,"value":340},"val",{"type":9,"tag":41,"props":342,"children":343},{"style":91},[344],{"type":14,"value":345}," =>",{"type":9,"tag":41,"props":347,"children":348},{"style":48},[349],{"type":14,"value":350}," val ",{"type":9,"tag":41,"props":352,"children":353},{"style":91},[354],{"type":14,"value":355},"===",{"type":9,"tag":41,"props":357,"children":358},{"style":167},[359],{"type":14,"value":360}," true",{"type":9,"tag":41,"props":362,"children":363},{"style":48},[364],{"type":14,"value":365},", ",{"type":9,"tag":41,"props":367,"children":368},{"style":71},[369],{"type":14,"value":370},"'必须同意条款才能继续'",{"type":9,"tag":41,"props":372,"children":373},{"style":48},[374],{"type":14,"value":375},")\n",{"type":9,"tag":41,"props":377,"children":379},{"class":43,"line":378},15,[380,384,389],{"type":9,"tag":41,"props":381,"children":382},{"style":48},[383],{"type":14,"value":324},{"type":9,"tag":41,"props":385,"children":386},{"style":60},[387],{"type":14,"value":388},"meta",{"type":9,"tag":41,"props":390,"children":391},{"style":48},[392],{"type":14,"value":256},{"type":9,"tag":41,"props":394,"children":396},{"class":43,"line":395},16,[397,401],{"type":9,"tag":41,"props":398,"children":399},{"style":48},[400],{"type":14,"value":292},{"type":9,"tag":41,"props":402,"children":403},{"style":71},[404],{"type":14,"value":405},"'复选框'\n",{"type":9,"tag":41,"props":407,"children":409},{"class":43,"line":408},17,[410],{"type":9,"tag":41,"props":411,"children":412},{"style":48},[413],{"type":14,"value":414},"    })\n",{"type":9,"tag":41,"props":416,"children":418},{"class":43,"line":417},18,[419],{"type":9,"tag":41,"props":420,"children":421},{"style":48},[422],{"type":14,"value":423},"})\n",{"type":9,"tag":41,"props":425,"children":427},{"class":43,"line":426},19,[428],{"type":9,"tag":41,"props":429,"children":430},{"emptyLinePlaceholder":147},[431],{"type":14,"value":150},{"type":9,"tag":41,"props":433,"children":435},{"class":43,"line":434},20,[436,441,446,451,455,460,465,470,474,479,484,489,493,498],{"type":9,"tag":41,"props":437,"children":438},{"style":91},[439],{"type":14,"value":440},"async",{"type":9,"tag":41,"props":442,"children":443},{"style":91},[444],{"type":14,"value":445}," function",{"type":9,"tag":41,"props":447,"children":448},{"style":60},[449],{"type":14,"value":450}," onSubmit",{"type":9,"tag":41,"props":452,"children":453},{"style":48},[454],{"type":14,"value":334},{"type":9,"tag":41,"props":456,"children":457},{"style":337},[458],{"type":14,"value":459},"event",{"type":9,"tag":41,"props":461,"children":462},{"style":91},[463],{"type":14,"value":464},":",{"type":9,"tag":41,"props":466,"children":467},{"style":60},[468],{"type":14,"value":469}," FormSubmitEvent",{"type":9,"tag":41,"props":471,"children":472},{"style":48},[473],{"type":14,"value":51},{"type":9,"tag":41,"props":475,"children":476},{"style":60},[477],{"type":14,"value":478},"z",{"type":9,"tag":41,"props":480,"children":481},{"style":48},[482],{"type":14,"value":483},".",{"type":9,"tag":41,"props":485,"children":486},{"style":60},[487],{"type":14,"value":488},"output",{"type":9,"tag":41,"props":490,"children":491},{"style":48},[492],{"type":14,"value":51},{"type":9,"tag":41,"props":494,"children":495},{"style":91},[496],{"type":14,"value":497},"typeof",{"type":9,"tag":41,"props":499,"children":500},{"style":48},[501],{"type":14,"value":502}," schema>>) {\n",{"type":9,"tag":41,"props":504,"children":506},{"class":43,"line":505},21,[507,512,517],{"type":9,"tag":41,"props":508,"children":509},{"style":48},[510],{"type":14,"value":511},"  toast.",{"type":9,"tag":41,"props":513,"children":514},{"style":60},[515],{"type":14,"value":516},"add",{"type":9,"tag":41,"props":518,"children":519},{"style":48},[520],{"type":14,"value":256},{"type":9,"tag":41,"props":522,"children":524},{"class":43,"line":523},22,[525,530,535],{"type":9,"tag":41,"props":526,"children":527},{"style":48},[528],{"type":14,"value":529},"    title: ",{"type":9,"tag":41,"props":531,"children":532},{"style":71},[533],{"type":14,"value":534},"'Success'",{"type":9,"tag":41,"props":536,"children":537},{"style":48},[538],{"type":14,"value":539},",\n",{"type":9,"tag":41,"props":541,"children":543},{"class":43,"line":542},23,[544,549,554],{"type":9,"tag":41,"props":545,"children":546},{"style":48},[547],{"type":14,"value":548},"    color: ",{"type":9,"tag":41,"props":550,"children":551},{"style":71},[552],{"type":14,"value":553},"'success'",{"type":9,"tag":41,"props":555,"children":556},{"style":48},[557],{"type":14,"value":539},{"type":9,"tag":41,"props":559,"children":561},{"class":43,"line":560},24,[562,567,572,576,581,586,591,595,600],{"type":9,"tag":41,"props":563,"children":564},{"style":48},[565],{"type":14,"value":566},"    description: ",{"type":9,"tag":41,"props":568,"children":569},{"style":167},[570],{"type":14,"value":571},"JSON",{"type":9,"tag":41,"props":573,"children":574},{"style":48},[575],{"type":14,"value":483},{"type":9,"tag":41,"props":577,"children":578},{"style":60},[579],{"type":14,"value":580},"stringify",{"type":9,"tag":41,"props":582,"children":583},{"style":48},[584],{"type":14,"value":585},"(event.data, ",{"type":9,"tag":41,"props":587,"children":588},{"style":167},[589],{"type":14,"value":590},"null",{"type":9,"tag":41,"props":592,"children":593},{"style":48},[594],{"type":14,"value":365},{"type":9,"tag":41,"props":596,"children":597},{"style":167},[598],{"type":14,"value":599},"2",{"type":9,"tag":41,"props":601,"children":602},{"style":48},[603],{"type":14,"value":375},{"type":9,"tag":41,"props":605,"children":607},{"class":43,"line":606},25,[608],{"type":9,"tag":41,"props":609,"children":610},{"style":48},[611],{"type":14,"value":315},{"type":9,"tag":41,"props":613,"children":615},{"class":43,"line":614},26,[616],{"type":9,"tag":41,"props":617,"children":618},{"style":48},[619],{"type":14,"value":620},"}\n",{"type":9,"tag":41,"props":622,"children":624},{"class":43,"line":623},27,[625,630,634],{"type":9,"tag":41,"props":626,"children":627},{"style":48},[628],{"type":14,"value":629},"\u003C\u002F",{"type":9,"tag":41,"props":631,"children":632},{"style":54},[633],{"type":14,"value":57},{"type":9,"tag":41,"props":635,"children":636},{"style":48},[637],{"type":14,"value":84},{"type":9,"tag":41,"props":639,"children":641},{"class":43,"line":640},28,[642],{"type":9,"tag":41,"props":643,"children":644},{"emptyLinePlaceholder":147},[645],{"type":14,"value":150},{"type":9,"tag":41,"props":647,"children":649},{"class":43,"line":648},29,[650,654,659],{"type":9,"tag":41,"props":651,"children":652},{"style":48},[653],{"type":14,"value":51},{"type":9,"tag":41,"props":655,"children":656},{"style":54},[657],{"type":14,"value":658},"template",{"type":9,"tag":41,"props":660,"children":661},{"style":48},[662],{"type":14,"value":84},{"type":9,"tag":41,"props":664,"children":666},{"class":43,"line":665},30,[667,672,677,682,687,691,696,700,704,709,714,718,722,727,731],{"type":9,"tag":41,"props":668,"children":669},{"style":48},[670],{"type":14,"value":671},"  \u003C",{"type":9,"tag":41,"props":673,"children":674},{"style":54},[675],{"type":14,"value":676},"MAutoForm",{"type":9,"tag":41,"props":678,"children":679},{"style":48},[680],{"type":14,"value":681}," :",{"type":9,"tag":41,"props":683,"children":684},{"style":60},[685],{"type":14,"value":686},"schema",{"type":9,"tag":41,"props":688,"children":689},{"style":48},[690],{"type":14,"value":68},{"type":9,"tag":41,"props":692,"children":693},{"style":71},[694],{"type":14,"value":695},"\"",{"type":9,"tag":41,"props":697,"children":698},{"style":48},[699],{"type":14,"value":686},{"type":9,"tag":41,"props":701,"children":702},{"style":71},[703],{"type":14,"value":695},{"type":9,"tag":41,"props":705,"children":706},{"style":48},[707],{"type":14,"value":708}," @",{"type":9,"tag":41,"props":710,"children":711},{"style":60},[712],{"type":14,"value":713},"submit",{"type":9,"tag":41,"props":715,"children":716},{"style":48},[717],{"type":14,"value":68},{"type":9,"tag":41,"props":719,"children":720},{"style":71},[721],{"type":14,"value":695},{"type":9,"tag":41,"props":723,"children":724},{"style":48},[725],{"type":14,"value":726},"onSubmit",{"type":9,"tag":41,"props":728,"children":729},{"style":71},[730],{"type":14,"value":695},{"type":9,"tag":41,"props":732,"children":733},{"style":48},[734],{"type":14,"value":735}," \u002F>\n",{"type":9,"tag":41,"props":737,"children":739},{"class":43,"line":738},31,[740,744,748],{"type":9,"tag":41,"props":741,"children":742},{"style":48},[743],{"type":14,"value":629},{"type":9,"tag":41,"props":745,"children":746},{"style":54},[747],{"type":14,"value":658},{"type":9,"tag":41,"props":749,"children":750},{"style":48},[751],{"type":14,"value":84},{"type":9,"tag":753,"props":754,"children":755},"style",{},[756],{"type":14,"value":757},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":22,"searchDepth":87,"depth":87,"links":759},[],{"code":761,"filePath":762,"pascalName":763},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  enabled: afz.boolean({\n    type: 'switch'\n  })\n    .default(true)\n    .meta({\n      label: '开关',\n      hint: '切换功能启用\u002F禁用状态'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Ffield-types\u002FAutoFormFieldBooleanSwitchExample.vue","AutoFormFieldBooleanSwitchExample",{"data":765,"body":766,"toc":1352},{"title":22,"description":22},{"type":6,"children":767},[768,1348],{"type":9,"tag":26,"props":769,"children":770},{},[771],{"type":9,"tag":30,"props":772,"children":774},{"className":32,"code":773,"language":34,"meta":22,"style":22},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  enabled: afz.boolean({\n    type: 'switch'\n  })\n    .default(true)\n    .meta({\n      label: '开关',\n      hint: '切换功能启用\u002F禁用状态'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n\n",[775],{"type":9,"tag":37,"props":776,"children":777},{"__ignoreMap":22},[778,809,832,855,862,893,916,923,950,966,979,986,1011,1026,1042,1055,1062,1069,1076,1135,1150,1165,1180,1219,1226,1233,1248,1255,1270,1333],{"type":9,"tag":41,"props":779,"children":780},{"class":43,"line":44},[781,785,789,793,797,801,805],{"type":9,"tag":41,"props":782,"children":783},{"style":48},[784],{"type":14,"value":51},{"type":9,"tag":41,"props":786,"children":787},{"style":54},[788],{"type":14,"value":57},{"type":9,"tag":41,"props":790,"children":791},{"style":60},[792],{"type":14,"value":63},{"type":9,"tag":41,"props":794,"children":795},{"style":48},[796],{"type":14,"value":68},{"type":9,"tag":41,"props":798,"children":799},{"style":71},[800],{"type":14,"value":74},{"type":9,"tag":41,"props":802,"children":803},{"style":60},[804],{"type":14,"value":79},{"type":9,"tag":41,"props":806,"children":807},{"style":48},[808],{"type":14,"value":84},{"type":9,"tag":41,"props":810,"children":811},{"class":43,"line":87},[812,816,820,824,828],{"type":9,"tag":41,"props":813,"children":814},{"style":91},[815],{"type":14,"value":94},{"type":9,"tag":41,"props":817,"children":818},{"style":91},[819],{"type":14,"value":99},{"type":9,"tag":41,"props":821,"children":822},{"style":48},[823],{"type":14,"value":104},{"type":9,"tag":41,"props":825,"children":826},{"style":91},[827],{"type":14,"value":109},{"type":9,"tag":41,"props":829,"children":830},{"style":71},[831],{"type":14,"value":114},{"type":9,"tag":41,"props":833,"children":834},{"class":43,"line":117},[835,839,843,847,851],{"type":9,"tag":41,"props":836,"children":837},{"style":91},[838],{"type":14,"value":94},{"type":9,"tag":41,"props":840,"children":841},{"style":91},[842],{"type":14,"value":99},{"type":9,"tag":41,"props":844,"children":845},{"style":48},[846],{"type":14,"value":131},{"type":9,"tag":41,"props":848,"children":849},{"style":91},[850],{"type":14,"value":109},{"type":9,"tag":41,"props":852,"children":853},{"style":71},[854],{"type":14,"value":140},{"type":9,"tag":41,"props":856,"children":857},{"class":43,"line":143},[858],{"type":9,"tag":41,"props":859,"children":860},{"emptyLinePlaceholder":147},[861],{"type":14,"value":150},{"type":9,"tag":41,"props":863,"children":864},{"class":43,"line":153},[865,869,873,877,881,885,889],{"type":9,"tag":41,"props":866,"children":867},{"style":91},[868],{"type":14,"value":159},{"type":9,"tag":41,"props":870,"children":871},{"style":48},[872],{"type":14,"value":164},{"type":9,"tag":41,"props":874,"children":875},{"style":167},[876],{"type":14,"value":170},{"type":9,"tag":41,"props":878,"children":879},{"style":48},[880],{"type":14,"value":175},{"type":9,"tag":41,"props":882,"children":883},{"style":91},[884],{"type":14,"value":68},{"type":9,"tag":41,"props":886,"children":887},{"style":60},[888],{"type":14,"value":184},{"type":9,"tag":41,"props":890,"children":891},{"style":48},[892],{"type":14,"value":189},{"type":9,"tag":41,"props":894,"children":895},{"class":43,"line":192},[896,900,904,908,912],{"type":9,"tag":41,"props":897,"children":898},{"style":91},[899],{"type":14,"value":159},{"type":9,"tag":41,"props":901,"children":902},{"style":167},[903],{"type":14,"value":202},{"type":9,"tag":41,"props":905,"children":906},{"style":91},[907],{"type":14,"value":207},{"type":9,"tag":41,"props":909,"children":910},{"style":60},[911],{"type":14,"value":212},{"type":9,"tag":41,"props":913,"children":914},{"style":48},[915],{"type":14,"value":189},{"type":9,"tag":41,"props":917,"children":918},{"class":43,"line":219},[919],{"type":9,"tag":41,"props":920,"children":921},{"emptyLinePlaceholder":147},[922],{"type":14,"value":150},{"type":9,"tag":41,"props":924,"children":925},{"class":43,"line":227},[926,930,934,938,942,946],{"type":9,"tag":41,"props":927,"children":928},{"style":91},[929],{"type":14,"value":159},{"type":9,"tag":41,"props":931,"children":932},{"style":167},[933],{"type":14,"value":237},{"type":9,"tag":41,"props":935,"children":936},{"style":91},[937],{"type":14,"value":207},{"type":9,"tag":41,"props":939,"children":940},{"style":48},[941],{"type":14,"value":246},{"type":9,"tag":41,"props":943,"children":944},{"style":60},[945],{"type":14,"value":251},{"type":9,"tag":41,"props":947,"children":948},{"style":48},[949],{"type":14,"value":256},{"type":9,"tag":41,"props":951,"children":952},{"class":43,"line":259},[953,958,962],{"type":9,"tag":41,"props":954,"children":955},{"style":48},[956],{"type":14,"value":957},"  enabled: afz.",{"type":9,"tag":41,"props":959,"children":960},{"style":60},[961],{"type":14,"value":270},{"type":9,"tag":41,"props":963,"children":964},{"style":48},[965],{"type":14,"value":256},{"type":9,"tag":41,"props":967,"children":968},{"class":43,"line":277},[969,974],{"type":9,"tag":41,"props":970,"children":971},{"style":48},[972],{"type":14,"value":973},"    type: ",{"type":9,"tag":41,"props":975,"children":976},{"style":71},[977],{"type":14,"value":978},"'switch'\n",{"type":9,"tag":41,"props":980,"children":981},{"class":43,"line":286},[982],{"type":9,"tag":41,"props":983,"children":984},{"style":48},[985],{"type":14,"value":315},{"type":9,"tag":41,"props":987,"children":988},{"class":43,"line":300},[989,993,998,1002,1007],{"type":9,"tag":41,"props":990,"children":991},{"style":48},[992],{"type":14,"value":324},{"type":9,"tag":41,"props":994,"children":995},{"style":60},[996],{"type":14,"value":997},"default",{"type":9,"tag":41,"props":999,"children":1000},{"style":48},[1001],{"type":14,"value":334},{"type":9,"tag":41,"props":1003,"children":1004},{"style":167},[1005],{"type":14,"value":1006},"true",{"type":9,"tag":41,"props":1008,"children":1009},{"style":48},[1010],{"type":14,"value":375},{"type":9,"tag":41,"props":1012,"children":1013},{"class":43,"line":309},[1014,1018,1022],{"type":9,"tag":41,"props":1015,"children":1016},{"style":48},[1017],{"type":14,"value":324},{"type":9,"tag":41,"props":1019,"children":1020},{"style":60},[1021],{"type":14,"value":388},{"type":9,"tag":41,"props":1023,"children":1024},{"style":48},[1025],{"type":14,"value":256},{"type":9,"tag":41,"props":1027,"children":1028},{"class":43,"line":318},[1029,1033,1038],{"type":9,"tag":41,"props":1030,"children":1031},{"style":48},[1032],{"type":14,"value":292},{"type":9,"tag":41,"props":1034,"children":1035},{"style":71},[1036],{"type":14,"value":1037},"'开关'",{"type":9,"tag":41,"props":1039,"children":1040},{"style":48},[1041],{"type":14,"value":539},{"type":9,"tag":41,"props":1043,"children":1044},{"class":43,"line":378},[1045,1050],{"type":9,"tag":41,"props":1046,"children":1047},{"style":48},[1048],{"type":14,"value":1049},"      hint: ",{"type":9,"tag":41,"props":1051,"children":1052},{"style":71},[1053],{"type":14,"value":1054},"'切换功能启用\u002F禁用状态'\n",{"type":9,"tag":41,"props":1056,"children":1057},{"class":43,"line":395},[1058],{"type":9,"tag":41,"props":1059,"children":1060},{"style":48},[1061],{"type":14,"value":414},{"type":9,"tag":41,"props":1063,"children":1064},{"class":43,"line":408},[1065],{"type":9,"tag":41,"props":1066,"children":1067},{"style":48},[1068],{"type":14,"value":423},{"type":9,"tag":41,"props":1070,"children":1071},{"class":43,"line":417},[1072],{"type":9,"tag":41,"props":1073,"children":1074},{"emptyLinePlaceholder":147},[1075],{"type":14,"value":150},{"type":9,"tag":41,"props":1077,"children":1078},{"class":43,"line":426},[1079,1083,1087,1091,1095,1099,1103,1107,1111,1115,1119,1123,1127,1131],{"type":9,"tag":41,"props":1080,"children":1081},{"style":91},[1082],{"type":14,"value":440},{"type":9,"tag":41,"props":1084,"children":1085},{"style":91},[1086],{"type":14,"value":445},{"type":9,"tag":41,"props":1088,"children":1089},{"style":60},[1090],{"type":14,"value":450},{"type":9,"tag":41,"props":1092,"children":1093},{"style":48},[1094],{"type":14,"value":334},{"type":9,"tag":41,"props":1096,"children":1097},{"style":337},[1098],{"type":14,"value":459},{"type":9,"tag":41,"props":1100,"children":1101},{"style":91},[1102],{"type":14,"value":464},{"type":9,"tag":41,"props":1104,"children":1105},{"style":60},[1106],{"type":14,"value":469},{"type":9,"tag":41,"props":1108,"children":1109},{"style":48},[1110],{"type":14,"value":51},{"type":9,"tag":41,"props":1112,"children":1113},{"style":60},[1114],{"type":14,"value":478},{"type":9,"tag":41,"props":1116,"children":1117},{"style":48},[1118],{"type":14,"value":483},{"type":9,"tag":41,"props":1120,"children":1121},{"style":60},[1122],{"type":14,"value":488},{"type":9,"tag":41,"props":1124,"children":1125},{"style":48},[1126],{"type":14,"value":51},{"type":9,"tag":41,"props":1128,"children":1129},{"style":91},[1130],{"type":14,"value":497},{"type":9,"tag":41,"props":1132,"children":1133},{"style":48},[1134],{"type":14,"value":502},{"type":9,"tag":41,"props":1136,"children":1137},{"class":43,"line":434},[1138,1142,1146],{"type":9,"tag":41,"props":1139,"children":1140},{"style":48},[1141],{"type":14,"value":511},{"type":9,"tag":41,"props":1143,"children":1144},{"style":60},[1145],{"type":14,"value":516},{"type":9,"tag":41,"props":1147,"children":1148},{"style":48},[1149],{"type":14,"value":256},{"type":9,"tag":41,"props":1151,"children":1152},{"class":43,"line":505},[1153,1157,1161],{"type":9,"tag":41,"props":1154,"children":1155},{"style":48},[1156],{"type":14,"value":529},{"type":9,"tag":41,"props":1158,"children":1159},{"style":71},[1160],{"type":14,"value":534},{"type":9,"tag":41,"props":1162,"children":1163},{"style":48},[1164],{"type":14,"value":539},{"type":9,"tag":41,"props":1166,"children":1167},{"class":43,"line":523},[1168,1172,1176],{"type":9,"tag":41,"props":1169,"children":1170},{"style":48},[1171],{"type":14,"value":548},{"type":9,"tag":41,"props":1173,"children":1174},{"style":71},[1175],{"type":14,"value":553},{"type":9,"tag":41,"props":1177,"children":1178},{"style":48},[1179],{"type":14,"value":539},{"type":9,"tag":41,"props":1181,"children":1182},{"class":43,"line":542},[1183,1187,1191,1195,1199,1203,1207,1211,1215],{"type":9,"tag":41,"props":1184,"children":1185},{"style":48},[1186],{"type":14,"value":566},{"type":9,"tag":41,"props":1188,"children":1189},{"style":167},[1190],{"type":14,"value":571},{"type":9,"tag":41,"props":1192,"children":1193},{"style":48},[1194],{"type":14,"value":483},{"type":9,"tag":41,"props":1196,"children":1197},{"style":60},[1198],{"type":14,"value":580},{"type":9,"tag":41,"props":1200,"children":1201},{"style":48},[1202],{"type":14,"value":585},{"type":9,"tag":41,"props":1204,"children":1205},{"style":167},[1206],{"type":14,"value":590},{"type":9,"tag":41,"props":1208,"children":1209},{"style":48},[1210],{"type":14,"value":365},{"type":9,"tag":41,"props":1212,"children":1213},{"style":167},[1214],{"type":14,"value":599},{"type":9,"tag":41,"props":1216,"children":1217},{"style":48},[1218],{"type":14,"value":375},{"type":9,"tag":41,"props":1220,"children":1221},{"class":43,"line":560},[1222],{"type":9,"tag":41,"props":1223,"children":1224},{"style":48},[1225],{"type":14,"value":315},{"type":9,"tag":41,"props":1227,"children":1228},{"class":43,"line":606},[1229],{"type":9,"tag":41,"props":1230,"children":1231},{"style":48},[1232],{"type":14,"value":620},{"type":9,"tag":41,"props":1234,"children":1235},{"class":43,"line":614},[1236,1240,1244],{"type":9,"tag":41,"props":1237,"children":1238},{"style":48},[1239],{"type":14,"value":629},{"type":9,"tag":41,"props":1241,"children":1242},{"style":54},[1243],{"type":14,"value":57},{"type":9,"tag":41,"props":1245,"children":1246},{"style":48},[1247],{"type":14,"value":84},{"type":9,"tag":41,"props":1249,"children":1250},{"class":43,"line":623},[1251],{"type":9,"tag":41,"props":1252,"children":1253},{"emptyLinePlaceholder":147},[1254],{"type":14,"value":150},{"type":9,"tag":41,"props":1256,"children":1257},{"class":43,"line":640},[1258,1262,1266],{"type":9,"tag":41,"props":1259,"children":1260},{"style":48},[1261],{"type":14,"value":51},{"type":9,"tag":41,"props":1263,"children":1264},{"style":54},[1265],{"type":14,"value":658},{"type":9,"tag":41,"props":1267,"children":1268},{"style":48},[1269],{"type":14,"value":84},{"type":9,"tag":41,"props":1271,"children":1272},{"class":43,"line":648},[1273,1277,1281,1285,1289,1293,1297,1301,1305,1309,1313,1317,1321,1325,1329],{"type":9,"tag":41,"props":1274,"children":1275},{"style":48},[1276],{"type":14,"value":671},{"type":9,"tag":41,"props":1278,"children":1279},{"style":54},[1280],{"type":14,"value":676},{"type":9,"tag":41,"props":1282,"children":1283},{"style":48},[1284],{"type":14,"value":681},{"type":9,"tag":41,"props":1286,"children":1287},{"style":60},[1288],{"type":14,"value":686},{"type":9,"tag":41,"props":1290,"children":1291},{"style":48},[1292],{"type":14,"value":68},{"type":9,"tag":41,"props":1294,"children":1295},{"style":71},[1296],{"type":14,"value":695},{"type":9,"tag":41,"props":1298,"children":1299},{"style":48},[1300],{"type":14,"value":686},{"type":9,"tag":41,"props":1302,"children":1303},{"style":71},[1304],{"type":14,"value":695},{"type":9,"tag":41,"props":1306,"children":1307},{"style":48},[1308],{"type":14,"value":708},{"type":9,"tag":41,"props":1310,"children":1311},{"style":60},[1312],{"type":14,"value":713},{"type":9,"tag":41,"props":1314,"children":1315},{"style":48},[1316],{"type":14,"value":68},{"type":9,"tag":41,"props":1318,"children":1319},{"style":71},[1320],{"type":14,"value":695},{"type":9,"tag":41,"props":1322,"children":1323},{"style":48},[1324],{"type":14,"value":726},{"type":9,"tag":41,"props":1326,"children":1327},{"style":71},[1328],{"type":14,"value":695},{"type":9,"tag":41,"props":1330,"children":1331},{"style":48},[1332],{"type":14,"value":735},{"type":9,"tag":41,"props":1334,"children":1335},{"class":43,"line":665},[1336,1340,1344],{"type":9,"tag":41,"props":1337,"children":1338},{"style":48},[1339],{"type":14,"value":629},{"type":9,"tag":41,"props":1341,"children":1342},{"style":54},[1343],{"type":14,"value":658},{"type":9,"tag":41,"props":1345,"children":1346},{"style":48},[1347],{"type":14,"value":84},{"type":9,"tag":753,"props":1349,"children":1350},{},[1351],{"type":14,"value":757},{"title":22,"searchDepth":87,"depth":87,"links":1353},[],{"code":1355,"filePath":1356,"pascalName":1357},"\u003Cscript setup lang=\"ts\">\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst schema = afz.object({\n  pinned: afz.boolean({\n    type: 'toggle',\n    controlProps: { label: '置顶', activeVariant: 'solid' }\n  }).default(false).meta({ label: '文章设置' })\n})\n\nconst state = reactive\u003Cz.input\u003Ctypeof schema>>({})\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm v-model=\"state\" :schema=\"schema\" :submit=\"false\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Ffield-types\u002FAutoFormFieldBooleanToggleExample.vue","AutoFormFieldBooleanToggleExample",{"data":1359,"body":1360,"toc":1802},{"title":22,"description":22},{"type":6,"children":1361},[1362,1798],{"type":9,"tag":26,"props":1363,"children":1364},{},[1365],{"type":9,"tag":30,"props":1366,"children":1368},{"className":32,"code":1367,"language":34,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst schema = afz.object({\n  pinned: afz.boolean({\n    type: 'toggle',\n    controlProps: { label: '置顶', activeVariant: 'solid' }\n  }).default(false).meta({ label: '文章设置' })\n})\n\nconst state = reactive\u003Cz.input\u003Ctypeof schema>>({})\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm v-model=\"state\" :schema=\"schema\" :submit=\"false\" \u002F>\n\u003C\u002Ftemplate>\n\n",[1369],{"type":9,"tag":37,"props":1370,"children":1371},{"__ignoreMap":22},[1372,1403,1426,1433,1464,1491,1507,1523,1551,1596,1603,1610,1661,1676,1683,1698,1783],{"type":9,"tag":41,"props":1373,"children":1374},{"class":43,"line":44},[1375,1379,1383,1387,1391,1395,1399],{"type":9,"tag":41,"props":1376,"children":1377},{"style":48},[1378],{"type":14,"value":51},{"type":9,"tag":41,"props":1380,"children":1381},{"style":54},[1382],{"type":14,"value":57},{"type":9,"tag":41,"props":1384,"children":1385},{"style":60},[1386],{"type":14,"value":79},{"type":9,"tag":41,"props":1388,"children":1389},{"style":60},[1390],{"type":14,"value":63},{"type":9,"tag":41,"props":1392,"children":1393},{"style":48},[1394],{"type":14,"value":68},{"type":9,"tag":41,"props":1396,"children":1397},{"style":71},[1398],{"type":14,"value":74},{"type":9,"tag":41,"props":1400,"children":1401},{"style":48},[1402],{"type":14,"value":84},{"type":9,"tag":41,"props":1404,"children":1405},{"class":43,"line":87},[1406,1410,1414,1418,1422],{"type":9,"tag":41,"props":1407,"children":1408},{"style":91},[1409],{"type":14,"value":94},{"type":9,"tag":41,"props":1411,"children":1412},{"style":91},[1413],{"type":14,"value":99},{"type":9,"tag":41,"props":1415,"children":1416},{"style":48},[1417],{"type":14,"value":131},{"type":9,"tag":41,"props":1419,"children":1420},{"style":91},[1421],{"type":14,"value":109},{"type":9,"tag":41,"props":1423,"children":1424},{"style":71},[1425],{"type":14,"value":140},{"type":9,"tag":41,"props":1427,"children":1428},{"class":43,"line":117},[1429],{"type":9,"tag":41,"props":1430,"children":1431},{"emptyLinePlaceholder":147},[1432],{"type":14,"value":150},{"type":9,"tag":41,"props":1434,"children":1435},{"class":43,"line":143},[1436,1440,1444,1448,1452,1456,1460],{"type":9,"tag":41,"props":1437,"children":1438},{"style":91},[1439],{"type":14,"value":159},{"type":9,"tag":41,"props":1441,"children":1442},{"style":48},[1443],{"type":14,"value":164},{"type":9,"tag":41,"props":1445,"children":1446},{"style":167},[1447],{"type":14,"value":170},{"type":9,"tag":41,"props":1449,"children":1450},{"style":48},[1451],{"type":14,"value":175},{"type":9,"tag":41,"props":1453,"children":1454},{"style":91},[1455],{"type":14,"value":68},{"type":9,"tag":41,"props":1457,"children":1458},{"style":60},[1459],{"type":14,"value":184},{"type":9,"tag":41,"props":1461,"children":1462},{"style":48},[1463],{"type":14,"value":189},{"type":9,"tag":41,"props":1465,"children":1466},{"class":43,"line":153},[1467,1471,1475,1479,1483,1487],{"type":9,"tag":41,"props":1468,"children":1469},{"style":91},[1470],{"type":14,"value":159},{"type":9,"tag":41,"props":1472,"children":1473},{"style":167},[1474],{"type":14,"value":237},{"type":9,"tag":41,"props":1476,"children":1477},{"style":91},[1478],{"type":14,"value":207},{"type":9,"tag":41,"props":1480,"children":1481},{"style":48},[1482],{"type":14,"value":246},{"type":9,"tag":41,"props":1484,"children":1485},{"style":60},[1486],{"type":14,"value":251},{"type":9,"tag":41,"props":1488,"children":1489},{"style":48},[1490],{"type":14,"value":256},{"type":9,"tag":41,"props":1492,"children":1493},{"class":43,"line":192},[1494,1499,1503],{"type":9,"tag":41,"props":1495,"children":1496},{"style":48},[1497],{"type":14,"value":1498},"  pinned: afz.",{"type":9,"tag":41,"props":1500,"children":1501},{"style":60},[1502],{"type":14,"value":270},{"type":9,"tag":41,"props":1504,"children":1505},{"style":48},[1506],{"type":14,"value":256},{"type":9,"tag":41,"props":1508,"children":1509},{"class":43,"line":219},[1510,1514,1519],{"type":9,"tag":41,"props":1511,"children":1512},{"style":48},[1513],{"type":14,"value":973},{"type":9,"tag":41,"props":1515,"children":1516},{"style":71},[1517],{"type":14,"value":1518},"'toggle'",{"type":9,"tag":41,"props":1520,"children":1521},{"style":48},[1522],{"type":14,"value":539},{"type":9,"tag":41,"props":1524,"children":1525},{"class":43,"line":227},[1526,1531,1536,1541,1546],{"type":9,"tag":41,"props":1527,"children":1528},{"style":48},[1529],{"type":14,"value":1530},"    controlProps: { label: ",{"type":9,"tag":41,"props":1532,"children":1533},{"style":71},[1534],{"type":14,"value":1535},"'置顶'",{"type":9,"tag":41,"props":1537,"children":1538},{"style":48},[1539],{"type":14,"value":1540},", activeVariant: ",{"type":9,"tag":41,"props":1542,"children":1543},{"style":71},[1544],{"type":14,"value":1545},"'solid'",{"type":9,"tag":41,"props":1547,"children":1548},{"style":48},[1549],{"type":14,"value":1550}," }\n",{"type":9,"tag":41,"props":1552,"children":1553},{"class":43,"line":259},[1554,1559,1563,1567,1572,1577,1581,1586,1591],{"type":9,"tag":41,"props":1555,"children":1556},{"style":48},[1557],{"type":14,"value":1558},"  }).",{"type":9,"tag":41,"props":1560,"children":1561},{"style":60},[1562],{"type":14,"value":997},{"type":9,"tag":41,"props":1564,"children":1565},{"style":48},[1566],{"type":14,"value":334},{"type":9,"tag":41,"props":1568,"children":1569},{"style":167},[1570],{"type":14,"value":1571},"false",{"type":9,"tag":41,"props":1573,"children":1574},{"style":48},[1575],{"type":14,"value":1576},").",{"type":9,"tag":41,"props":1578,"children":1579},{"style":60},[1580],{"type":14,"value":388},{"type":9,"tag":41,"props":1582,"children":1583},{"style":48},[1584],{"type":14,"value":1585},"({ label: ",{"type":9,"tag":41,"props":1587,"children":1588},{"style":71},[1589],{"type":14,"value":1590},"'文章设置'",{"type":9,"tag":41,"props":1592,"children":1593},{"style":48},[1594],{"type":14,"value":1595}," })\n",{"type":9,"tag":41,"props":1597,"children":1598},{"class":43,"line":277},[1599],{"type":9,"tag":41,"props":1600,"children":1601},{"style":48},[1602],{"type":14,"value":423},{"type":9,"tag":41,"props":1604,"children":1605},{"class":43,"line":286},[1606],{"type":9,"tag":41,"props":1607,"children":1608},{"emptyLinePlaceholder":147},[1609],{"type":14,"value":150},{"type":9,"tag":41,"props":1611,"children":1612},{"class":43,"line":300},[1613,1617,1622,1626,1631,1635,1639,1643,1648,1652,1656],{"type":9,"tag":41,"props":1614,"children":1615},{"style":91},[1616],{"type":14,"value":159},{"type":9,"tag":41,"props":1618,"children":1619},{"style":167},[1620],{"type":14,"value":1621}," state",{"type":9,"tag":41,"props":1623,"children":1624},{"style":91},[1625],{"type":14,"value":207},{"type":9,"tag":41,"props":1627,"children":1628},{"style":60},[1629],{"type":14,"value":1630}," reactive",{"type":9,"tag":41,"props":1632,"children":1633},{"style":48},[1634],{"type":14,"value":51},{"type":9,"tag":41,"props":1636,"children":1637},{"style":60},[1638],{"type":14,"value":478},{"type":9,"tag":41,"props":1640,"children":1641},{"style":48},[1642],{"type":14,"value":483},{"type":9,"tag":41,"props":1644,"children":1645},{"style":60},[1646],{"type":14,"value":1647},"input",{"type":9,"tag":41,"props":1649,"children":1650},{"style":48},[1651],{"type":14,"value":51},{"type":9,"tag":41,"props":1653,"children":1654},{"style":91},[1655],{"type":14,"value":497},{"type":9,"tag":41,"props":1657,"children":1658},{"style":48},[1659],{"type":14,"value":1660}," schema>>({})\n",{"type":9,"tag":41,"props":1662,"children":1663},{"class":43,"line":309},[1664,1668,1672],{"type":9,"tag":41,"props":1665,"children":1666},{"style":48},[1667],{"type":14,"value":629},{"type":9,"tag":41,"props":1669,"children":1670},{"style":54},[1671],{"type":14,"value":57},{"type":9,"tag":41,"props":1673,"children":1674},{"style":48},[1675],{"type":14,"value":84},{"type":9,"tag":41,"props":1677,"children":1678},{"class":43,"line":318},[1679],{"type":9,"tag":41,"props":1680,"children":1681},{"emptyLinePlaceholder":147},[1682],{"type":14,"value":150},{"type":9,"tag":41,"props":1684,"children":1685},{"class":43,"line":378},[1686,1690,1694],{"type":9,"tag":41,"props":1687,"children":1688},{"style":48},[1689],{"type":14,"value":51},{"type":9,"tag":41,"props":1691,"children":1692},{"style":54},[1693],{"type":14,"value":658},{"type":9,"tag":41,"props":1695,"children":1696},{"style":48},[1697],{"type":14,"value":84},{"type":9,"tag":41,"props":1699,"children":1700},{"class":43,"line":395},[1701,1705,1709,1714,1718,1722,1727,1731,1735,1739,1743,1747,1751,1755,1759,1763,1767,1771,1775,1779],{"type":9,"tag":41,"props":1702,"children":1703},{"style":48},[1704],{"type":14,"value":671},{"type":9,"tag":41,"props":1706,"children":1707},{"style":54},[1708],{"type":14,"value":676},{"type":9,"tag":41,"props":1710,"children":1711},{"style":60},[1712],{"type":14,"value":1713}," v-model",{"type":9,"tag":41,"props":1715,"children":1716},{"style":48},[1717],{"type":14,"value":68},{"type":9,"tag":41,"props":1719,"children":1720},{"style":71},[1721],{"type":14,"value":695},{"type":9,"tag":41,"props":1723,"children":1724},{"style":48},[1725],{"type":14,"value":1726},"state",{"type":9,"tag":41,"props":1728,"children":1729},{"style":71},[1730],{"type":14,"value":695},{"type":9,"tag":41,"props":1732,"children":1733},{"style":48},[1734],{"type":14,"value":681},{"type":9,"tag":41,"props":1736,"children":1737},{"style":60},[1738],{"type":14,"value":686},{"type":9,"tag":41,"props":1740,"children":1741},{"style":48},[1742],{"type":14,"value":68},{"type":9,"tag":41,"props":1744,"children":1745},{"style":71},[1746],{"type":14,"value":695},{"type":9,"tag":41,"props":1748,"children":1749},{"style":48},[1750],{"type":14,"value":686},{"type":9,"tag":41,"props":1752,"children":1753},{"style":71},[1754],{"type":14,"value":695},{"type":9,"tag":41,"props":1756,"children":1757},{"style":48},[1758],{"type":14,"value":681},{"type":9,"tag":41,"props":1760,"children":1761},{"style":60},[1762],{"type":14,"value":713},{"type":9,"tag":41,"props":1764,"children":1765},{"style":48},[1766],{"type":14,"value":68},{"type":9,"tag":41,"props":1768,"children":1769},{"style":71},[1770],{"type":14,"value":695},{"type":9,"tag":41,"props":1772,"children":1773},{"style":167},[1774],{"type":14,"value":1571},{"type":9,"tag":41,"props":1776,"children":1777},{"style":71},[1778],{"type":14,"value":695},{"type":9,"tag":41,"props":1780,"children":1781},{"style":48},[1782],{"type":14,"value":735},{"type":9,"tag":41,"props":1784,"children":1785},{"class":43,"line":408},[1786,1790,1794],{"type":9,"tag":41,"props":1787,"children":1788},{"style":48},[1789],{"type":14,"value":629},{"type":9,"tag":41,"props":1791,"children":1792},{"style":54},[1793],{"type":14,"value":658},{"type":9,"tag":41,"props":1795,"children":1796},{"style":48},[1797],{"type":14,"value":84},{"type":9,"tag":753,"props":1799,"children":1800},{},[1801],{"type":14,"value":757},{"title":22,"searchDepth":87,"depth":87,"links":1803},[],{"code":1805,"filePath":1806,"pascalName":1807},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\nimport { CalendarDate } from '@internationalized\u002Fdate'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\nconst formatter = useDateFormatter()\n\nconst schema = afz.object({\n  appointmentDate: afz.calendarDate({ controlProps: { labelFormat: 'iso' } })\n    .refine(\n      date => date > new CalendarDate(2026, 1, 1),\n      { message: '日期必须在 2026 年之后' }\n    )\n    .transform(date => formatter.toTimestamp(date))\n    .meta({ label: '预约日期', description: '请选择一个在 2026 年之后的日期' })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Ffield-types\u002FAutoFormFieldDatePickerExample.vue","AutoFormFieldDatePickerExample",{"data":1809,"body":1810,"toc":2536},{"title":22,"description":22},{"type":6,"children":1811},[1812,2532],{"type":9,"tag":26,"props":1813,"children":1814},{},[1815],{"type":9,"tag":30,"props":1816,"children":1818},{"className":32,"code":1817,"language":34,"meta":22,"style":22},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\nimport { CalendarDate } from '@internationalized\u002Fdate'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\nconst formatter = useDateFormatter()\n\nconst schema = afz.object({\n  appointmentDate: afz.calendarDate({ controlProps: { labelFormat: 'iso' } })\n    .refine(\n      date => date > new CalendarDate(2026, 1, 1),\n      { message: '日期必须在 2026 年之后' }\n    )\n    .transform(date => formatter.toTimestamp(date))\n    .meta({ label: '预约日期', description: '请选择一个在 2026 年之后的日期' })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n\n",[1819],{"type":9,"tag":37,"props":1820,"children":1821},{"__ignoreMap":22},[1822,1853,1876,1899,1920,1927,1958,1981,2006,2013,2040,2068,2084,2147,2164,2172,2212,2246,2253,2260,2319,2334,2349,2364,2403,2410,2417,2432,2439,2454,2517],{"type":9,"tag":41,"props":1823,"children":1824},{"class":43,"line":44},[1825,1829,1833,1837,1841,1845,1849],{"type":9,"tag":41,"props":1826,"children":1827},{"style":48},[1828],{"type":14,"value":51},{"type":9,"tag":41,"props":1830,"children":1831},{"style":54},[1832],{"type":14,"value":57},{"type":9,"tag":41,"props":1834,"children":1835},{"style":60},[1836],{"type":14,"value":63},{"type":9,"tag":41,"props":1838,"children":1839},{"style":48},[1840],{"type":14,"value":68},{"type":9,"tag":41,"props":1842,"children":1843},{"style":71},[1844],{"type":14,"value":74},{"type":9,"tag":41,"props":1846,"children":1847},{"style":60},[1848],{"type":14,"value":79},{"type":9,"tag":41,"props":1850,"children":1851},{"style":48},[1852],{"type":14,"value":84},{"type":9,"tag":41,"props":1854,"children":1855},{"class":43,"line":87},[1856,1860,1864,1868,1872],{"type":9,"tag":41,"props":1857,"children":1858},{"style":91},[1859],{"type":14,"value":94},{"type":9,"tag":41,"props":1861,"children":1862},{"style":91},[1863],{"type":14,"value":99},{"type":9,"tag":41,"props":1865,"children":1866},{"style":48},[1867],{"type":14,"value":104},{"type":9,"tag":41,"props":1869,"children":1870},{"style":91},[1871],{"type":14,"value":109},{"type":9,"tag":41,"props":1873,"children":1874},{"style":71},[1875],{"type":14,"value":114},{"type":9,"tag":41,"props":1877,"children":1878},{"class":43,"line":117},[1879,1883,1887,1891,1895],{"type":9,"tag":41,"props":1880,"children":1881},{"style":91},[1882],{"type":14,"value":94},{"type":9,"tag":41,"props":1884,"children":1885},{"style":91},[1886],{"type":14,"value":99},{"type":9,"tag":41,"props":1888,"children":1889},{"style":48},[1890],{"type":14,"value":131},{"type":9,"tag":41,"props":1892,"children":1893},{"style":91},[1894],{"type":14,"value":109},{"type":9,"tag":41,"props":1896,"children":1897},{"style":71},[1898],{"type":14,"value":140},{"type":9,"tag":41,"props":1900,"children":1901},{"class":43,"line":143},[1902,1906,1911,1915],{"type":9,"tag":41,"props":1903,"children":1904},{"style":91},[1905],{"type":14,"value":94},{"type":9,"tag":41,"props":1907,"children":1908},{"style":48},[1909],{"type":14,"value":1910}," { CalendarDate } ",{"type":9,"tag":41,"props":1912,"children":1913},{"style":91},[1914],{"type":14,"value":109},{"type":9,"tag":41,"props":1916,"children":1917},{"style":71},[1918],{"type":14,"value":1919}," '@internationalized\u002Fdate'\n",{"type":9,"tag":41,"props":1921,"children":1922},{"class":43,"line":153},[1923],{"type":9,"tag":41,"props":1924,"children":1925},{"emptyLinePlaceholder":147},[1926],{"type":14,"value":150},{"type":9,"tag":41,"props":1928,"children":1929},{"class":43,"line":192},[1930,1934,1938,1942,1946,1950,1954],{"type":9,"tag":41,"props":1931,"children":1932},{"style":91},[1933],{"type":14,"value":159},{"type":9,"tag":41,"props":1935,"children":1936},{"style":48},[1937],{"type":14,"value":164},{"type":9,"tag":41,"props":1939,"children":1940},{"style":167},[1941],{"type":14,"value":170},{"type":9,"tag":41,"props":1943,"children":1944},{"style":48},[1945],{"type":14,"value":175},{"type":9,"tag":41,"props":1947,"children":1948},{"style":91},[1949],{"type":14,"value":68},{"type":9,"tag":41,"props":1951,"children":1952},{"style":60},[1953],{"type":14,"value":184},{"type":9,"tag":41,"props":1955,"children":1956},{"style":48},[1957],{"type":14,"value":189},{"type":9,"tag":41,"props":1959,"children":1960},{"class":43,"line":219},[1961,1965,1969,1973,1977],{"type":9,"tag":41,"props":1962,"children":1963},{"style":91},[1964],{"type":14,"value":159},{"type":9,"tag":41,"props":1966,"children":1967},{"style":167},[1968],{"type":14,"value":202},{"type":9,"tag":41,"props":1970,"children":1971},{"style":91},[1972],{"type":14,"value":207},{"type":9,"tag":41,"props":1974,"children":1975},{"style":60},[1976],{"type":14,"value":212},{"type":9,"tag":41,"props":1978,"children":1979},{"style":48},[1980],{"type":14,"value":189},{"type":9,"tag":41,"props":1982,"children":1983},{"class":43,"line":227},[1984,1988,1993,1997,2002],{"type":9,"tag":41,"props":1985,"children":1986},{"style":91},[1987],{"type":14,"value":159},{"type":9,"tag":41,"props":1989,"children":1990},{"style":167},[1991],{"type":14,"value":1992}," formatter",{"type":9,"tag":41,"props":1994,"children":1995},{"style":91},[1996],{"type":14,"value":207},{"type":9,"tag":41,"props":1998,"children":1999},{"style":60},[2000],{"type":14,"value":2001}," useDateFormatter",{"type":9,"tag":41,"props":2003,"children":2004},{"style":48},[2005],{"type":14,"value":189},{"type":9,"tag":41,"props":2007,"children":2008},{"class":43,"line":259},[2009],{"type":9,"tag":41,"props":2010,"children":2011},{"emptyLinePlaceholder":147},[2012],{"type":14,"value":150},{"type":9,"tag":41,"props":2014,"children":2015},{"class":43,"line":277},[2016,2020,2024,2028,2032,2036],{"type":9,"tag":41,"props":2017,"children":2018},{"style":91},[2019],{"type":14,"value":159},{"type":9,"tag":41,"props":2021,"children":2022},{"style":167},[2023],{"type":14,"value":237},{"type":9,"tag":41,"props":2025,"children":2026},{"style":91},[2027],{"type":14,"value":207},{"type":9,"tag":41,"props":2029,"children":2030},{"style":48},[2031],{"type":14,"value":246},{"type":9,"tag":41,"props":2033,"children":2034},{"style":60},[2035],{"type":14,"value":251},{"type":9,"tag":41,"props":2037,"children":2038},{"style":48},[2039],{"type":14,"value":256},{"type":9,"tag":41,"props":2041,"children":2042},{"class":43,"line":286},[2043,2048,2053,2058,2063],{"type":9,"tag":41,"props":2044,"children":2045},{"style":48},[2046],{"type":14,"value":2047},"  appointmentDate: afz.",{"type":9,"tag":41,"props":2049,"children":2050},{"style":60},[2051],{"type":14,"value":2052},"calendarDate",{"type":9,"tag":41,"props":2054,"children":2055},{"style":48},[2056],{"type":14,"value":2057},"({ controlProps: { labelFormat: ",{"type":9,"tag":41,"props":2059,"children":2060},{"style":71},[2061],{"type":14,"value":2062},"'iso'",{"type":9,"tag":41,"props":2064,"children":2065},{"style":48},[2066],{"type":14,"value":2067}," } })\n",{"type":9,"tag":41,"props":2069,"children":2070},{"class":43,"line":300},[2071,2075,2079],{"type":9,"tag":41,"props":2072,"children":2073},{"style":48},[2074],{"type":14,"value":324},{"type":9,"tag":41,"props":2076,"children":2077},{"style":60},[2078],{"type":14,"value":329},{"type":9,"tag":41,"props":2080,"children":2081},{"style":48},[2082],{"type":14,"value":2083},"(\n",{"type":9,"tag":41,"props":2085,"children":2086},{"class":43,"line":309},[2087,2092,2096,2101,2106,2111,2116,2120,2125,2129,2134,2138,2142],{"type":9,"tag":41,"props":2088,"children":2089},{"style":337},[2090],{"type":14,"value":2091},"      date",{"type":9,"tag":41,"props":2093,"children":2094},{"style":91},[2095],{"type":14,"value":345},{"type":9,"tag":41,"props":2097,"children":2098},{"style":48},[2099],{"type":14,"value":2100}," date ",{"type":9,"tag":41,"props":2102,"children":2103},{"style":91},[2104],{"type":14,"value":2105},">",{"type":9,"tag":41,"props":2107,"children":2108},{"style":91},[2109],{"type":14,"value":2110}," new",{"type":9,"tag":41,"props":2112,"children":2113},{"style":60},[2114],{"type":14,"value":2115}," CalendarDate",{"type":9,"tag":41,"props":2117,"children":2118},{"style":48},[2119],{"type":14,"value":334},{"type":9,"tag":41,"props":2121,"children":2122},{"style":167},[2123],{"type":14,"value":2124},"2026",{"type":9,"tag":41,"props":2126,"children":2127},{"style":48},[2128],{"type":14,"value":365},{"type":9,"tag":41,"props":2130,"children":2131},{"style":167},[2132],{"type":14,"value":2133},"1",{"type":9,"tag":41,"props":2135,"children":2136},{"style":48},[2137],{"type":14,"value":365},{"type":9,"tag":41,"props":2139,"children":2140},{"style":167},[2141],{"type":14,"value":2133},{"type":9,"tag":41,"props":2143,"children":2144},{"style":48},[2145],{"type":14,"value":2146},"),\n",{"type":9,"tag":41,"props":2148,"children":2149},{"class":43,"line":318},[2150,2155,2160],{"type":9,"tag":41,"props":2151,"children":2152},{"style":48},[2153],{"type":14,"value":2154},"      { message: ",{"type":9,"tag":41,"props":2156,"children":2157},{"style":71},[2158],{"type":14,"value":2159},"'日期必须在 2026 年之后'",{"type":9,"tag":41,"props":2161,"children":2162},{"style":48},[2163],{"type":14,"value":1550},{"type":9,"tag":41,"props":2165,"children":2166},{"class":43,"line":378},[2167],{"type":9,"tag":41,"props":2168,"children":2169},{"style":48},[2170],{"type":14,"value":2171},"    )\n",{"type":9,"tag":41,"props":2173,"children":2174},{"class":43,"line":395},[2175,2179,2184,2188,2193,2197,2202,2207],{"type":9,"tag":41,"props":2176,"children":2177},{"style":48},[2178],{"type":14,"value":324},{"type":9,"tag":41,"props":2180,"children":2181},{"style":60},[2182],{"type":14,"value":2183},"transform",{"type":9,"tag":41,"props":2185,"children":2186},{"style":48},[2187],{"type":14,"value":334},{"type":9,"tag":41,"props":2189,"children":2190},{"style":337},[2191],{"type":14,"value":2192},"date",{"type":9,"tag":41,"props":2194,"children":2195},{"style":91},[2196],{"type":14,"value":345},{"type":9,"tag":41,"props":2198,"children":2199},{"style":48},[2200],{"type":14,"value":2201}," formatter.",{"type":9,"tag":41,"props":2203,"children":2204},{"style":60},[2205],{"type":14,"value":2206},"toTimestamp",{"type":9,"tag":41,"props":2208,"children":2209},{"style":48},[2210],{"type":14,"value":2211},"(date))\n",{"type":9,"tag":41,"props":2213,"children":2214},{"class":43,"line":408},[2215,2219,2223,2227,2232,2237,2242],{"type":9,"tag":41,"props":2216,"children":2217},{"style":48},[2218],{"type":14,"value":324},{"type":9,"tag":41,"props":2220,"children":2221},{"style":60},[2222],{"type":14,"value":388},{"type":9,"tag":41,"props":2224,"children":2225},{"style":48},[2226],{"type":14,"value":1585},{"type":9,"tag":41,"props":2228,"children":2229},{"style":71},[2230],{"type":14,"value":2231},"'预约日期'",{"type":9,"tag":41,"props":2233,"children":2234},{"style":48},[2235],{"type":14,"value":2236},", description: ",{"type":9,"tag":41,"props":2238,"children":2239},{"style":71},[2240],{"type":14,"value":2241},"'请选择一个在 2026 年之后的日期'",{"type":9,"tag":41,"props":2243,"children":2244},{"style":48},[2245],{"type":14,"value":1595},{"type":9,"tag":41,"props":2247,"children":2248},{"class":43,"line":417},[2249],{"type":9,"tag":41,"props":2250,"children":2251},{"style":48},[2252],{"type":14,"value":423},{"type":9,"tag":41,"props":2254,"children":2255},{"class":43,"line":426},[2256],{"type":9,"tag":41,"props":2257,"children":2258},{"emptyLinePlaceholder":147},[2259],{"type":14,"value":150},{"type":9,"tag":41,"props":2261,"children":2262},{"class":43,"line":434},[2263,2267,2271,2275,2279,2283,2287,2291,2295,2299,2303,2307,2311,2315],{"type":9,"tag":41,"props":2264,"children":2265},{"style":91},[2266],{"type":14,"value":440},{"type":9,"tag":41,"props":2268,"children":2269},{"style":91},[2270],{"type":14,"value":445},{"type":9,"tag":41,"props":2272,"children":2273},{"style":60},[2274],{"type":14,"value":450},{"type":9,"tag":41,"props":2276,"children":2277},{"style":48},[2278],{"type":14,"value":334},{"type":9,"tag":41,"props":2280,"children":2281},{"style":337},[2282],{"type":14,"value":459},{"type":9,"tag":41,"props":2284,"children":2285},{"style":91},[2286],{"type":14,"value":464},{"type":9,"tag":41,"props":2288,"children":2289},{"style":60},[2290],{"type":14,"value":469},{"type":9,"tag":41,"props":2292,"children":2293},{"style":48},[2294],{"type":14,"value":51},{"type":9,"tag":41,"props":2296,"children":2297},{"style":60},[2298],{"type":14,"value":478},{"type":9,"tag":41,"props":2300,"children":2301},{"style":48},[2302],{"type":14,"value":483},{"type":9,"tag":41,"props":2304,"children":2305},{"style":60},[2306],{"type":14,"value":488},{"type":9,"tag":41,"props":2308,"children":2309},{"style":48},[2310],{"type":14,"value":51},{"type":9,"tag":41,"props":2312,"children":2313},{"style":91},[2314],{"type":14,"value":497},{"type":9,"tag":41,"props":2316,"children":2317},{"style":48},[2318],{"type":14,"value":502},{"type":9,"tag":41,"props":2320,"children":2321},{"class":43,"line":505},[2322,2326,2330],{"type":9,"tag":41,"props":2323,"children":2324},{"style":48},[2325],{"type":14,"value":511},{"type":9,"tag":41,"props":2327,"children":2328},{"style":60},[2329],{"type":14,"value":516},{"type":9,"tag":41,"props":2331,"children":2332},{"style":48},[2333],{"type":14,"value":256},{"type":9,"tag":41,"props":2335,"children":2336},{"class":43,"line":523},[2337,2341,2345],{"type":9,"tag":41,"props":2338,"children":2339},{"style":48},[2340],{"type":14,"value":529},{"type":9,"tag":41,"props":2342,"children":2343},{"style":71},[2344],{"type":14,"value":534},{"type":9,"tag":41,"props":2346,"children":2347},{"style":48},[2348],{"type":14,"value":539},{"type":9,"tag":41,"props":2350,"children":2351},{"class":43,"line":542},[2352,2356,2360],{"type":9,"tag":41,"props":2353,"children":2354},{"style":48},[2355],{"type":14,"value":548},{"type":9,"tag":41,"props":2357,"children":2358},{"style":71},[2359],{"type":14,"value":553},{"type":9,"tag":41,"props":2361,"children":2362},{"style":48},[2363],{"type":14,"value":539},{"type":9,"tag":41,"props":2365,"children":2366},{"class":43,"line":560},[2367,2371,2375,2379,2383,2387,2391,2395,2399],{"type":9,"tag":41,"props":2368,"children":2369},{"style":48},[2370],{"type":14,"value":566},{"type":9,"tag":41,"props":2372,"children":2373},{"style":167},[2374],{"type":14,"value":571},{"type":9,"tag":41,"props":2376,"children":2377},{"style":48},[2378],{"type":14,"value":483},{"type":9,"tag":41,"props":2380,"children":2381},{"style":60},[2382],{"type":14,"value":580},{"type":9,"tag":41,"props":2384,"children":2385},{"style":48},[2386],{"type":14,"value":585},{"type":9,"tag":41,"props":2388,"children":2389},{"style":167},[2390],{"type":14,"value":590},{"type":9,"tag":41,"props":2392,"children":2393},{"style":48},[2394],{"type":14,"value":365},{"type":9,"tag":41,"props":2396,"children":2397},{"style":167},[2398],{"type":14,"value":599},{"type":9,"tag":41,"props":2400,"children":2401},{"style":48},[2402],{"type":14,"value":375},{"type":9,"tag":41,"props":2404,"children":2405},{"class":43,"line":606},[2406],{"type":9,"tag":41,"props":2407,"children":2408},{"style":48},[2409],{"type":14,"value":315},{"type":9,"tag":41,"props":2411,"children":2412},{"class":43,"line":614},[2413],{"type":9,"tag":41,"props":2414,"children":2415},{"style":48},[2416],{"type":14,"value":620},{"type":9,"tag":41,"props":2418,"children":2419},{"class":43,"line":623},[2420,2424,2428],{"type":9,"tag":41,"props":2421,"children":2422},{"style":48},[2423],{"type":14,"value":629},{"type":9,"tag":41,"props":2425,"children":2426},{"style":54},[2427],{"type":14,"value":57},{"type":9,"tag":41,"props":2429,"children":2430},{"style":48},[2431],{"type":14,"value":84},{"type":9,"tag":41,"props":2433,"children":2434},{"class":43,"line":640},[2435],{"type":9,"tag":41,"props":2436,"children":2437},{"emptyLinePlaceholder":147},[2438],{"type":14,"value":150},{"type":9,"tag":41,"props":2440,"children":2441},{"class":43,"line":648},[2442,2446,2450],{"type":9,"tag":41,"props":2443,"children":2444},{"style":48},[2445],{"type":14,"value":51},{"type":9,"tag":41,"props":2447,"children":2448},{"style":54},[2449],{"type":14,"value":658},{"type":9,"tag":41,"props":2451,"children":2452},{"style":48},[2453],{"type":14,"value":84},{"type":9,"tag":41,"props":2455,"children":2456},{"class":43,"line":665},[2457,2461,2465,2469,2473,2477,2481,2485,2489,2493,2497,2501,2505,2509,2513],{"type":9,"tag":41,"props":2458,"children":2459},{"style":48},[2460],{"type":14,"value":671},{"type":9,"tag":41,"props":2462,"children":2463},{"style":54},[2464],{"type":14,"value":676},{"type":9,"tag":41,"props":2466,"children":2467},{"style":48},[2468],{"type":14,"value":681},{"type":9,"tag":41,"props":2470,"children":2471},{"style":60},[2472],{"type":14,"value":686},{"type":9,"tag":41,"props":2474,"children":2475},{"style":48},[2476],{"type":14,"value":68},{"type":9,"tag":41,"props":2478,"children":2479},{"style":71},[2480],{"type":14,"value":695},{"type":9,"tag":41,"props":2482,"children":2483},{"style":48},[2484],{"type":14,"value":686},{"type":9,"tag":41,"props":2486,"children":2487},{"style":71},[2488],{"type":14,"value":695},{"type":9,"tag":41,"props":2490,"children":2491},{"style":48},[2492],{"type":14,"value":708},{"type":9,"tag":41,"props":2494,"children":2495},{"style":60},[2496],{"type":14,"value":713},{"type":9,"tag":41,"props":2498,"children":2499},{"style":48},[2500],{"type":14,"value":68},{"type":9,"tag":41,"props":2502,"children":2503},{"style":71},[2504],{"type":14,"value":695},{"type":9,"tag":41,"props":2506,"children":2507},{"style":48},[2508],{"type":14,"value":726},{"type":9,"tag":41,"props":2510,"children":2511},{"style":71},[2512],{"type":14,"value":695},{"type":9,"tag":41,"props":2514,"children":2515},{"style":48},[2516],{"type":14,"value":735},{"type":9,"tag":41,"props":2518,"children":2519},{"class":43,"line":738},[2520,2524,2528],{"type":9,"tag":41,"props":2521,"children":2522},{"style":48},[2523],{"type":14,"value":629},{"type":9,"tag":41,"props":2525,"children":2526},{"style":54},[2527],{"type":14,"value":658},{"type":9,"tag":41,"props":2529,"children":2530},{"style":48},[2531],{"type":14,"value":84},{"type":9,"tag":753,"props":2533,"children":2534},{},[2535],{"type":14,"value":757},{"title":22,"searchDepth":87,"depth":87,"links":2537},[],{"code":2539,"filePath":2540,"pascalName":2541},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  vacation: afz.calendarDate({\n    controlProps: {\n      labelFormat: 'iso',\n      range: true,\n      valueFormat: 'iso',\n      numberOfMonths: 2\n    }\n  })\n    .meta({\n      label: '日期范围',\n      hint: '选择日期范围，显示两个月'\n    })\n})\ntype Schema = z.output\u003Ctypeof schema>\n\nasync function onSubmit(event: FormSubmitEvent\u003CSchema>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Ffield-types\u002FAutoFormFieldDateRangeExample.vue","AutoFormFieldDateRangeExample",{"data":2543,"body":2544,"toc":3199},{"title":22,"description":22},{"type":6,"children":2545},[2546,3195],{"type":9,"tag":26,"props":2547,"children":2548},{},[2549],{"type":9,"tag":30,"props":2550,"children":2552},{"className":32,"code":2551,"language":34,"meta":22,"style":22},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  vacation: afz.calendarDate({\n    controlProps: {\n      labelFormat: 'iso',\n      range: true,\n      valueFormat: 'iso',\n      numberOfMonths: 2\n    }\n  })\n    .meta({\n      label: '日期范围',\n      hint: '选择日期范围，显示两个月'\n    })\n})\ntype Schema = z.output\u003Ctypeof schema>\n\nasync function onSubmit(event: FormSubmitEvent\u003CSchema>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n\n",[2553],{"type":9,"tag":37,"props":2554,"children":2555},{"__ignoreMap":22},[2556,2587,2610,2633,2640,2671,2694,2701,2728,2744,2751,2767,2783,2799,2812,2819,2826,2841,2857,2869,2876,2883,2926,2933,2978,2993,3008,3023,3062,3069,3076,3091,3099,3115,3179],{"type":9,"tag":41,"props":2557,"children":2558},{"class":43,"line":44},[2559,2563,2567,2571,2575,2579,2583],{"type":9,"tag":41,"props":2560,"children":2561},{"style":48},[2562],{"type":14,"value":51},{"type":9,"tag":41,"props":2564,"children":2565},{"style":54},[2566],{"type":14,"value":57},{"type":9,"tag":41,"props":2568,"children":2569},{"style":60},[2570],{"type":14,"value":63},{"type":9,"tag":41,"props":2572,"children":2573},{"style":48},[2574],{"type":14,"value":68},{"type":9,"tag":41,"props":2576,"children":2577},{"style":71},[2578],{"type":14,"value":74},{"type":9,"tag":41,"props":2580,"children":2581},{"style":60},[2582],{"type":14,"value":79},{"type":9,"tag":41,"props":2584,"children":2585},{"style":48},[2586],{"type":14,"value":84},{"type":9,"tag":41,"props":2588,"children":2589},{"class":43,"line":87},[2590,2594,2598,2602,2606],{"type":9,"tag":41,"props":2591,"children":2592},{"style":91},[2593],{"type":14,"value":94},{"type":9,"tag":41,"props":2595,"children":2596},{"style":91},[2597],{"type":14,"value":99},{"type":9,"tag":41,"props":2599,"children":2600},{"style":48},[2601],{"type":14,"value":104},{"type":9,"tag":41,"props":2603,"children":2604},{"style":91},[2605],{"type":14,"value":109},{"type":9,"tag":41,"props":2607,"children":2608},{"style":71},[2609],{"type":14,"value":114},{"type":9,"tag":41,"props":2611,"children":2612},{"class":43,"line":117},[2613,2617,2621,2625,2629],{"type":9,"tag":41,"props":2614,"children":2615},{"style":91},[2616],{"type":14,"value":94},{"type":9,"tag":41,"props":2618,"children":2619},{"style":91},[2620],{"type":14,"value":99},{"type":9,"tag":41,"props":2622,"children":2623},{"style":48},[2624],{"type":14,"value":131},{"type":9,"tag":41,"props":2626,"children":2627},{"style":91},[2628],{"type":14,"value":109},{"type":9,"tag":41,"props":2630,"children":2631},{"style":71},[2632],{"type":14,"value":140},{"type":9,"tag":41,"props":2634,"children":2635},{"class":43,"line":143},[2636],{"type":9,"tag":41,"props":2637,"children":2638},{"emptyLinePlaceholder":147},[2639],{"type":14,"value":150},{"type":9,"tag":41,"props":2641,"children":2642},{"class":43,"line":153},[2643,2647,2651,2655,2659,2663,2667],{"type":9,"tag":41,"props":2644,"children":2645},{"style":91},[2646],{"type":14,"value":159},{"type":9,"tag":41,"props":2648,"children":2649},{"style":48},[2650],{"type":14,"value":164},{"type":9,"tag":41,"props":2652,"children":2653},{"style":167},[2654],{"type":14,"value":170},{"type":9,"tag":41,"props":2656,"children":2657},{"style":48},[2658],{"type":14,"value":175},{"type":9,"tag":41,"props":2660,"children":2661},{"style":91},[2662],{"type":14,"value":68},{"type":9,"tag":41,"props":2664,"children":2665},{"style":60},[2666],{"type":14,"value":184},{"type":9,"tag":41,"props":2668,"children":2669},{"style":48},[2670],{"type":14,"value":189},{"type":9,"tag":41,"props":2672,"children":2673},{"class":43,"line":192},[2674,2678,2682,2686,2690],{"type":9,"tag":41,"props":2675,"children":2676},{"style":91},[2677],{"type":14,"value":159},{"type":9,"tag":41,"props":2679,"children":2680},{"style":167},[2681],{"type":14,"value":202},{"type":9,"tag":41,"props":2683,"children":2684},{"style":91},[2685],{"type":14,"value":207},{"type":9,"tag":41,"props":2687,"children":2688},{"style":60},[2689],{"type":14,"value":212},{"type":9,"tag":41,"props":2691,"children":2692},{"style":48},[2693],{"type":14,"value":189},{"type":9,"tag":41,"props":2695,"children":2696},{"class":43,"line":219},[2697],{"type":9,"tag":41,"props":2698,"children":2699},{"emptyLinePlaceholder":147},[2700],{"type":14,"value":150},{"type":9,"tag":41,"props":2702,"children":2703},{"class":43,"line":227},[2704,2708,2712,2716,2720,2724],{"type":9,"tag":41,"props":2705,"children":2706},{"style":91},[2707],{"type":14,"value":159},{"type":9,"tag":41,"props":2709,"children":2710},{"style":167},[2711],{"type":14,"value":237},{"type":9,"tag":41,"props":2713,"children":2714},{"style":91},[2715],{"type":14,"value":207},{"type":9,"tag":41,"props":2717,"children":2718},{"style":48},[2719],{"type":14,"value":246},{"type":9,"tag":41,"props":2721,"children":2722},{"style":60},[2723],{"type":14,"value":251},{"type":9,"tag":41,"props":2725,"children":2726},{"style":48},[2727],{"type":14,"value":256},{"type":9,"tag":41,"props":2729,"children":2730},{"class":43,"line":259},[2731,2736,2740],{"type":9,"tag":41,"props":2732,"children":2733},{"style":48},[2734],{"type":14,"value":2735},"  vacation: afz.",{"type":9,"tag":41,"props":2737,"children":2738},{"style":60},[2739],{"type":14,"value":2052},{"type":9,"tag":41,"props":2741,"children":2742},{"style":48},[2743],{"type":14,"value":256},{"type":9,"tag":41,"props":2745,"children":2746},{"class":43,"line":277},[2747],{"type":9,"tag":41,"props":2748,"children":2749},{"style":48},[2750],{"type":14,"value":283},{"type":9,"tag":41,"props":2752,"children":2753},{"class":43,"line":286},[2754,2759,2763],{"type":9,"tag":41,"props":2755,"children":2756},{"style":48},[2757],{"type":14,"value":2758},"      labelFormat: ",{"type":9,"tag":41,"props":2760,"children":2761},{"style":71},[2762],{"type":14,"value":2062},{"type":9,"tag":41,"props":2764,"children":2765},{"style":48},[2766],{"type":14,"value":539},{"type":9,"tag":41,"props":2768,"children":2769},{"class":43,"line":300},[2770,2775,2779],{"type":9,"tag":41,"props":2771,"children":2772},{"style":48},[2773],{"type":14,"value":2774},"      range: ",{"type":9,"tag":41,"props":2776,"children":2777},{"style":167},[2778],{"type":14,"value":1006},{"type":9,"tag":41,"props":2780,"children":2781},{"style":48},[2782],{"type":14,"value":539},{"type":9,"tag":41,"props":2784,"children":2785},{"class":43,"line":309},[2786,2791,2795],{"type":9,"tag":41,"props":2787,"children":2788},{"style":48},[2789],{"type":14,"value":2790},"      valueFormat: ",{"type":9,"tag":41,"props":2792,"children":2793},{"style":71},[2794],{"type":14,"value":2062},{"type":9,"tag":41,"props":2796,"children":2797},{"style":48},[2798],{"type":14,"value":539},{"type":9,"tag":41,"props":2800,"children":2801},{"class":43,"line":318},[2802,2807],{"type":9,"tag":41,"props":2803,"children":2804},{"style":48},[2805],{"type":14,"value":2806},"      numberOfMonths: ",{"type":9,"tag":41,"props":2808,"children":2809},{"style":167},[2810],{"type":14,"value":2811},"2\n",{"type":9,"tag":41,"props":2813,"children":2814},{"class":43,"line":378},[2815],{"type":9,"tag":41,"props":2816,"children":2817},{"style":48},[2818],{"type":14,"value":306},{"type":9,"tag":41,"props":2820,"children":2821},{"class":43,"line":395},[2822],{"type":9,"tag":41,"props":2823,"children":2824},{"style":48},[2825],{"type":14,"value":315},{"type":9,"tag":41,"props":2827,"children":2828},{"class":43,"line":408},[2829,2833,2837],{"type":9,"tag":41,"props":2830,"children":2831},{"style":48},[2832],{"type":14,"value":324},{"type":9,"tag":41,"props":2834,"children":2835},{"style":60},[2836],{"type":14,"value":388},{"type":9,"tag":41,"props":2838,"children":2839},{"style":48},[2840],{"type":14,"value":256},{"type":9,"tag":41,"props":2842,"children":2843},{"class":43,"line":417},[2844,2848,2853],{"type":9,"tag":41,"props":2845,"children":2846},{"style":48},[2847],{"type":14,"value":292},{"type":9,"tag":41,"props":2849,"children":2850},{"style":71},[2851],{"type":14,"value":2852},"'日期范围'",{"type":9,"tag":41,"props":2854,"children":2855},{"style":48},[2856],{"type":14,"value":539},{"type":9,"tag":41,"props":2858,"children":2859},{"class":43,"line":426},[2860,2864],{"type":9,"tag":41,"props":2861,"children":2862},{"style":48},[2863],{"type":14,"value":1049},{"type":9,"tag":41,"props":2865,"children":2866},{"style":71},[2867],{"type":14,"value":2868},"'选择日期范围，显示两个月'\n",{"type":9,"tag":41,"props":2870,"children":2871},{"class":43,"line":434},[2872],{"type":9,"tag":41,"props":2873,"children":2874},{"style":48},[2875],{"type":14,"value":414},{"type":9,"tag":41,"props":2877,"children":2878},{"class":43,"line":505},[2879],{"type":9,"tag":41,"props":2880,"children":2881},{"style":48},[2882],{"type":14,"value":423},{"type":9,"tag":41,"props":2884,"children":2885},{"class":43,"line":523},[2886,2891,2896,2900,2905,2909,2913,2917,2921],{"type":9,"tag":41,"props":2887,"children":2888},{"style":91},[2889],{"type":14,"value":2890},"type",{"type":9,"tag":41,"props":2892,"children":2893},{"style":60},[2894],{"type":14,"value":2895}," Schema",{"type":9,"tag":41,"props":2897,"children":2898},{"style":91},[2899],{"type":14,"value":207},{"type":9,"tag":41,"props":2901,"children":2902},{"style":60},[2903],{"type":14,"value":2904}," z",{"type":9,"tag":41,"props":2906,"children":2907},{"style":48},[2908],{"type":14,"value":483},{"type":9,"tag":41,"props":2910,"children":2911},{"style":60},[2912],{"type":14,"value":488},{"type":9,"tag":41,"props":2914,"children":2915},{"style":48},[2916],{"type":14,"value":51},{"type":9,"tag":41,"props":2918,"children":2919},{"style":91},[2920],{"type":14,"value":497},{"type":9,"tag":41,"props":2922,"children":2923},{"style":48},[2924],{"type":14,"value":2925}," schema>\n",{"type":9,"tag":41,"props":2927,"children":2928},{"class":43,"line":542},[2929],{"type":9,"tag":41,"props":2930,"children":2931},{"emptyLinePlaceholder":147},[2932],{"type":14,"value":150},{"type":9,"tag":41,"props":2934,"children":2935},{"class":43,"line":560},[2936,2940,2944,2948,2952,2956,2960,2964,2968,2973],{"type":9,"tag":41,"props":2937,"children":2938},{"style":91},[2939],{"type":14,"value":440},{"type":9,"tag":41,"props":2941,"children":2942},{"style":91},[2943],{"type":14,"value":445},{"type":9,"tag":41,"props":2945,"children":2946},{"style":60},[2947],{"type":14,"value":450},{"type":9,"tag":41,"props":2949,"children":2950},{"style":48},[2951],{"type":14,"value":334},{"type":9,"tag":41,"props":2953,"children":2954},{"style":337},[2955],{"type":14,"value":459},{"type":9,"tag":41,"props":2957,"children":2958},{"style":91},[2959],{"type":14,"value":464},{"type":9,"tag":41,"props":2961,"children":2962},{"style":60},[2963],{"type":14,"value":469},{"type":9,"tag":41,"props":2965,"children":2966},{"style":48},[2967],{"type":14,"value":51},{"type":9,"tag":41,"props":2969,"children":2970},{"style":60},[2971],{"type":14,"value":2972},"Schema",{"type":9,"tag":41,"props":2974,"children":2975},{"style":48},[2976],{"type":14,"value":2977},">) {\n",{"type":9,"tag":41,"props":2979,"children":2980},{"class":43,"line":606},[2981,2985,2989],{"type":9,"tag":41,"props":2982,"children":2983},{"style":48},[2984],{"type":14,"value":511},{"type":9,"tag":41,"props":2986,"children":2987},{"style":60},[2988],{"type":14,"value":516},{"type":9,"tag":41,"props":2990,"children":2991},{"style":48},[2992],{"type":14,"value":256},{"type":9,"tag":41,"props":2994,"children":2995},{"class":43,"line":614},[2996,3000,3004],{"type":9,"tag":41,"props":2997,"children":2998},{"style":48},[2999],{"type":14,"value":529},{"type":9,"tag":41,"props":3001,"children":3002},{"style":71},[3003],{"type":14,"value":534},{"type":9,"tag":41,"props":3005,"children":3006},{"style":48},[3007],{"type":14,"value":539},{"type":9,"tag":41,"props":3009,"children":3010},{"class":43,"line":623},[3011,3015,3019],{"type":9,"tag":41,"props":3012,"children":3013},{"style":48},[3014],{"type":14,"value":548},{"type":9,"tag":41,"props":3016,"children":3017},{"style":71},[3018],{"type":14,"value":553},{"type":9,"tag":41,"props":3020,"children":3021},{"style":48},[3022],{"type":14,"value":539},{"type":9,"tag":41,"props":3024,"children":3025},{"class":43,"line":640},[3026,3030,3034,3038,3042,3046,3050,3054,3058],{"type":9,"tag":41,"props":3027,"children":3028},{"style":48},[3029],{"type":14,"value":566},{"type":9,"tag":41,"props":3031,"children":3032},{"style":167},[3033],{"type":14,"value":571},{"type":9,"tag":41,"props":3035,"children":3036},{"style":48},[3037],{"type":14,"value":483},{"type":9,"tag":41,"props":3039,"children":3040},{"style":60},[3041],{"type":14,"value":580},{"type":9,"tag":41,"props":3043,"children":3044},{"style":48},[3045],{"type":14,"value":585},{"type":9,"tag":41,"props":3047,"children":3048},{"style":167},[3049],{"type":14,"value":590},{"type":9,"tag":41,"props":3051,"children":3052},{"style":48},[3053],{"type":14,"value":365},{"type":9,"tag":41,"props":3055,"children":3056},{"style":167},[3057],{"type":14,"value":599},{"type":9,"tag":41,"props":3059,"children":3060},{"style":48},[3061],{"type":14,"value":375},{"type":9,"tag":41,"props":3063,"children":3064},{"class":43,"line":648},[3065],{"type":9,"tag":41,"props":3066,"children":3067},{"style":48},[3068],{"type":14,"value":315},{"type":9,"tag":41,"props":3070,"children":3071},{"class":43,"line":665},[3072],{"type":9,"tag":41,"props":3073,"children":3074},{"style":48},[3075],{"type":14,"value":620},{"type":9,"tag":41,"props":3077,"children":3078},{"class":43,"line":738},[3079,3083,3087],{"type":9,"tag":41,"props":3080,"children":3081},{"style":48},[3082],{"type":14,"value":629},{"type":9,"tag":41,"props":3084,"children":3085},{"style":54},[3086],{"type":14,"value":57},{"type":9,"tag":41,"props":3088,"children":3089},{"style":48},[3090],{"type":14,"value":84},{"type":9,"tag":41,"props":3092,"children":3094},{"class":43,"line":3093},32,[3095],{"type":9,"tag":41,"props":3096,"children":3097},{"emptyLinePlaceholder":147},[3098],{"type":14,"value":150},{"type":9,"tag":41,"props":3100,"children":3102},{"class":43,"line":3101},33,[3103,3107,3111],{"type":9,"tag":41,"props":3104,"children":3105},{"style":48},[3106],{"type":14,"value":51},{"type":9,"tag":41,"props":3108,"children":3109},{"style":54},[3110],{"type":14,"value":658},{"type":9,"tag":41,"props":3112,"children":3113},{"style":48},[3114],{"type":14,"value":84},{"type":9,"tag":41,"props":3116,"children":3118},{"class":43,"line":3117},34,[3119,3123,3127,3131,3135,3139,3143,3147,3151,3155,3159,3163,3167,3171,3175],{"type":9,"tag":41,"props":3120,"children":3121},{"style":48},[3122],{"type":14,"value":671},{"type":9,"tag":41,"props":3124,"children":3125},{"style":54},[3126],{"type":14,"value":676},{"type":9,"tag":41,"props":3128,"children":3129},{"style":48},[3130],{"type":14,"value":681},{"type":9,"tag":41,"props":3132,"children":3133},{"style":60},[3134],{"type":14,"value":686},{"type":9,"tag":41,"props":3136,"children":3137},{"style":48},[3138],{"type":14,"value":68},{"type":9,"tag":41,"props":3140,"children":3141},{"style":71},[3142],{"type":14,"value":695},{"type":9,"tag":41,"props":3144,"children":3145},{"style":48},[3146],{"type":14,"value":686},{"type":9,"tag":41,"props":3148,"children":3149},{"style":71},[3150],{"type":14,"value":695},{"type":9,"tag":41,"props":3152,"children":3153},{"style":48},[3154],{"type":14,"value":708},{"type":9,"tag":41,"props":3156,"children":3157},{"style":60},[3158],{"type":14,"value":713},{"type":9,"tag":41,"props":3160,"children":3161},{"style":48},[3162],{"type":14,"value":68},{"type":9,"tag":41,"props":3164,"children":3165},{"style":71},[3166],{"type":14,"value":695},{"type":9,"tag":41,"props":3168,"children":3169},{"style":48},[3170],{"type":14,"value":726},{"type":9,"tag":41,"props":3172,"children":3173},{"style":71},[3174],{"type":14,"value":695},{"type":9,"tag":41,"props":3176,"children":3177},{"style":48},[3178],{"type":14,"value":735},{"type":9,"tag":41,"props":3180,"children":3182},{"class":43,"line":3181},35,[3183,3187,3191],{"type":9,"tag":41,"props":3184,"children":3185},{"style":48},[3186],{"type":14,"value":629},{"type":9,"tag":41,"props":3188,"children":3189},{"style":54},[3190],{"type":14,"value":658},{"type":9,"tag":41,"props":3192,"children":3193},{"style":48},[3194],{"type":14,"value":84},{"type":9,"tag":753,"props":3196,"children":3197},{},[3198],{"type":14,"value":757},{"title":22,"searchDepth":87,"depth":87,"links":3200},[],{"code":3202,"filePath":3203,"pascalName":3204},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  theme: afz.enum([], {\n    type: 'radioGroup',\n    controlProps: {\n      valueKey: 'id',\n      items: [\n        { label: 'System', description: '跟随系统设置', id: 'system' },\n        { label: 'Light', description: '浅色主题', id: 'light' },\n        { label: 'Dark', description: '深色主题', id: 'dark' }\n      ]\n    }\n  })\n    .default('system')\n    .meta({\n      label: '单选组'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Ffield-types\u002FAutoFormFieldEnumRadioGroupExample.vue","AutoFormFieldEnumRadioGroupExample",{"data":3206,"body":3207,"toc":3933},{"title":22,"description":22},{"type":6,"children":3208},[3209,3929],{"type":9,"tag":26,"props":3210,"children":3211},{},[3212],{"type":9,"tag":30,"props":3213,"children":3215},{"className":32,"code":3214,"language":34,"meta":22,"style":22},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  theme: afz.enum([], {\n    type: 'radioGroup',\n    controlProps: {\n      valueKey: 'id',\n      items: [\n        { label: 'System', description: '跟随系统设置', id: 'system' },\n        { label: 'Light', description: '浅色主题', id: 'light' },\n        { label: 'Dark', description: '深色主题', id: 'dark' }\n      ]\n    }\n  })\n    .default('system')\n    .meta({\n      label: '单选组'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n\n",[3216],{"type":9,"tag":37,"props":3217,"children":3218},{"__ignoreMap":22},[3219,3250,3273,3296,3303,3334,3357,3364,3391,3409,3425,3432,3449,3457,3494,3528,3562,3570,3577,3584,3607,3622,3634,3641,3648,3655,3714,3729,3744,3759,3798,3805,3812,3827,3834,3849,3913],{"type":9,"tag":41,"props":3220,"children":3221},{"class":43,"line":44},[3222,3226,3230,3234,3238,3242,3246],{"type":9,"tag":41,"props":3223,"children":3224},{"style":48},[3225],{"type":14,"value":51},{"type":9,"tag":41,"props":3227,"children":3228},{"style":54},[3229],{"type":14,"value":57},{"type":9,"tag":41,"props":3231,"children":3232},{"style":60},[3233],{"type":14,"value":63},{"type":9,"tag":41,"props":3235,"children":3236},{"style":48},[3237],{"type":14,"value":68},{"type":9,"tag":41,"props":3239,"children":3240},{"style":71},[3241],{"type":14,"value":74},{"type":9,"tag":41,"props":3243,"children":3244},{"style":60},[3245],{"type":14,"value":79},{"type":9,"tag":41,"props":3247,"children":3248},{"style":48},[3249],{"type":14,"value":84},{"type":9,"tag":41,"props":3251,"children":3252},{"class":43,"line":87},[3253,3257,3261,3265,3269],{"type":9,"tag":41,"props":3254,"children":3255},{"style":91},[3256],{"type":14,"value":94},{"type":9,"tag":41,"props":3258,"children":3259},{"style":91},[3260],{"type":14,"value":99},{"type":9,"tag":41,"props":3262,"children":3263},{"style":48},[3264],{"type":14,"value":104},{"type":9,"tag":41,"props":3266,"children":3267},{"style":91},[3268],{"type":14,"value":109},{"type":9,"tag":41,"props":3270,"children":3271},{"style":71},[3272],{"type":14,"value":114},{"type":9,"tag":41,"props":3274,"children":3275},{"class":43,"line":117},[3276,3280,3284,3288,3292],{"type":9,"tag":41,"props":3277,"children":3278},{"style":91},[3279],{"type":14,"value":94},{"type":9,"tag":41,"props":3281,"children":3282},{"style":91},[3283],{"type":14,"value":99},{"type":9,"tag":41,"props":3285,"children":3286},{"style":48},[3287],{"type":14,"value":131},{"type":9,"tag":41,"props":3289,"children":3290},{"style":91},[3291],{"type":14,"value":109},{"type":9,"tag":41,"props":3293,"children":3294},{"style":71},[3295],{"type":14,"value":140},{"type":9,"tag":41,"props":3297,"children":3298},{"class":43,"line":143},[3299],{"type":9,"tag":41,"props":3300,"children":3301},{"emptyLinePlaceholder":147},[3302],{"type":14,"value":150},{"type":9,"tag":41,"props":3304,"children":3305},{"class":43,"line":153},[3306,3310,3314,3318,3322,3326,3330],{"type":9,"tag":41,"props":3307,"children":3308},{"style":91},[3309],{"type":14,"value":159},{"type":9,"tag":41,"props":3311,"children":3312},{"style":48},[3313],{"type":14,"value":164},{"type":9,"tag":41,"props":3315,"children":3316},{"style":167},[3317],{"type":14,"value":170},{"type":9,"tag":41,"props":3319,"children":3320},{"style":48},[3321],{"type":14,"value":175},{"type":9,"tag":41,"props":3323,"children":3324},{"style":91},[3325],{"type":14,"value":68},{"type":9,"tag":41,"props":3327,"children":3328},{"style":60},[3329],{"type":14,"value":184},{"type":9,"tag":41,"props":3331,"children":3332},{"style":48},[3333],{"type":14,"value":189},{"type":9,"tag":41,"props":3335,"children":3336},{"class":43,"line":192},[3337,3341,3345,3349,3353],{"type":9,"tag":41,"props":3338,"children":3339},{"style":91},[3340],{"type":14,"value":159},{"type":9,"tag":41,"props":3342,"children":3343},{"style":167},[3344],{"type":14,"value":202},{"type":9,"tag":41,"props":3346,"children":3347},{"style":91},[3348],{"type":14,"value":207},{"type":9,"tag":41,"props":3350,"children":3351},{"style":60},[3352],{"type":14,"value":212},{"type":9,"tag":41,"props":3354,"children":3355},{"style":48},[3356],{"type":14,"value":189},{"type":9,"tag":41,"props":3358,"children":3359},{"class":43,"line":219},[3360],{"type":9,"tag":41,"props":3361,"children":3362},{"emptyLinePlaceholder":147},[3363],{"type":14,"value":150},{"type":9,"tag":41,"props":3365,"children":3366},{"class":43,"line":227},[3367,3371,3375,3379,3383,3387],{"type":9,"tag":41,"props":3368,"children":3369},{"style":91},[3370],{"type":14,"value":159},{"type":9,"tag":41,"props":3372,"children":3373},{"style":167},[3374],{"type":14,"value":237},{"type":9,"tag":41,"props":3376,"children":3377},{"style":91},[3378],{"type":14,"value":207},{"type":9,"tag":41,"props":3380,"children":3381},{"style":48},[3382],{"type":14,"value":246},{"type":9,"tag":41,"props":3384,"children":3385},{"style":60},[3386],{"type":14,"value":251},{"type":9,"tag":41,"props":3388,"children":3389},{"style":48},[3390],{"type":14,"value":256},{"type":9,"tag":41,"props":3392,"children":3393},{"class":43,"line":259},[3394,3399,3404],{"type":9,"tag":41,"props":3395,"children":3396},{"style":48},[3397],{"type":14,"value":3398},"  theme: afz.",{"type":9,"tag":41,"props":3400,"children":3401},{"style":60},[3402],{"type":14,"value":3403},"enum",{"type":9,"tag":41,"props":3405,"children":3406},{"style":48},[3407],{"type":14,"value":3408},"([], {\n",{"type":9,"tag":41,"props":3410,"children":3411},{"class":43,"line":277},[3412,3416,3421],{"type":9,"tag":41,"props":3413,"children":3414},{"style":48},[3415],{"type":14,"value":973},{"type":9,"tag":41,"props":3417,"children":3418},{"style":71},[3419],{"type":14,"value":3420},"'radioGroup'",{"type":9,"tag":41,"props":3422,"children":3423},{"style":48},[3424],{"type":14,"value":539},{"type":9,"tag":41,"props":3426,"children":3427},{"class":43,"line":286},[3428],{"type":9,"tag":41,"props":3429,"children":3430},{"style":48},[3431],{"type":14,"value":283},{"type":9,"tag":41,"props":3433,"children":3434},{"class":43,"line":300},[3435,3440,3445],{"type":9,"tag":41,"props":3436,"children":3437},{"style":48},[3438],{"type":14,"value":3439},"      valueKey: ",{"type":9,"tag":41,"props":3441,"children":3442},{"style":71},[3443],{"type":14,"value":3444},"'id'",{"type":9,"tag":41,"props":3446,"children":3447},{"style":48},[3448],{"type":14,"value":539},{"type":9,"tag":41,"props":3450,"children":3451},{"class":43,"line":309},[3452],{"type":9,"tag":41,"props":3453,"children":3454},{"style":48},[3455],{"type":14,"value":3456},"      items: [\n",{"type":9,"tag":41,"props":3458,"children":3459},{"class":43,"line":318},[3460,3465,3470,3474,3479,3484,3489],{"type":9,"tag":41,"props":3461,"children":3462},{"style":48},[3463],{"type":14,"value":3464},"        { label: ",{"type":9,"tag":41,"props":3466,"children":3467},{"style":71},[3468],{"type":14,"value":3469},"'System'",{"type":9,"tag":41,"props":3471,"children":3472},{"style":48},[3473],{"type":14,"value":2236},{"type":9,"tag":41,"props":3475,"children":3476},{"style":71},[3477],{"type":14,"value":3478},"'跟随系统设置'",{"type":9,"tag":41,"props":3480,"children":3481},{"style":48},[3482],{"type":14,"value":3483},", id: ",{"type":9,"tag":41,"props":3485,"children":3486},{"style":71},[3487],{"type":14,"value":3488},"'system'",{"type":9,"tag":41,"props":3490,"children":3491},{"style":48},[3492],{"type":14,"value":3493}," },\n",{"type":9,"tag":41,"props":3495,"children":3496},{"class":43,"line":378},[3497,3501,3506,3510,3515,3519,3524],{"type":9,"tag":41,"props":3498,"children":3499},{"style":48},[3500],{"type":14,"value":3464},{"type":9,"tag":41,"props":3502,"children":3503},{"style":71},[3504],{"type":14,"value":3505},"'Light'",{"type":9,"tag":41,"props":3507,"children":3508},{"style":48},[3509],{"type":14,"value":2236},{"type":9,"tag":41,"props":3511,"children":3512},{"style":71},[3513],{"type":14,"value":3514},"'浅色主题'",{"type":9,"tag":41,"props":3516,"children":3517},{"style":48},[3518],{"type":14,"value":3483},{"type":9,"tag":41,"props":3520,"children":3521},{"style":71},[3522],{"type":14,"value":3523},"'light'",{"type":9,"tag":41,"props":3525,"children":3526},{"style":48},[3527],{"type":14,"value":3493},{"type":9,"tag":41,"props":3529,"children":3530},{"class":43,"line":395},[3531,3535,3540,3544,3549,3553,3558],{"type":9,"tag":41,"props":3532,"children":3533},{"style":48},[3534],{"type":14,"value":3464},{"type":9,"tag":41,"props":3536,"children":3537},{"style":71},[3538],{"type":14,"value":3539},"'Dark'",{"type":9,"tag":41,"props":3541,"children":3542},{"style":48},[3543],{"type":14,"value":2236},{"type":9,"tag":41,"props":3545,"children":3546},{"style":71},[3547],{"type":14,"value":3548},"'深色主题'",{"type":9,"tag":41,"props":3550,"children":3551},{"style":48},[3552],{"type":14,"value":3483},{"type":9,"tag":41,"props":3554,"children":3555},{"style":71},[3556],{"type":14,"value":3557},"'dark'",{"type":9,"tag":41,"props":3559,"children":3560},{"style":48},[3561],{"type":14,"value":1550},{"type":9,"tag":41,"props":3563,"children":3564},{"class":43,"line":408},[3565],{"type":9,"tag":41,"props":3566,"children":3567},{"style":48},[3568],{"type":14,"value":3569},"      ]\n",{"type":9,"tag":41,"props":3571,"children":3572},{"class":43,"line":417},[3573],{"type":9,"tag":41,"props":3574,"children":3575},{"style":48},[3576],{"type":14,"value":306},{"type":9,"tag":41,"props":3578,"children":3579},{"class":43,"line":426},[3580],{"type":9,"tag":41,"props":3581,"children":3582},{"style":48},[3583],{"type":14,"value":315},{"type":9,"tag":41,"props":3585,"children":3586},{"class":43,"line":434},[3587,3591,3595,3599,3603],{"type":9,"tag":41,"props":3588,"children":3589},{"style":48},[3590],{"type":14,"value":324},{"type":9,"tag":41,"props":3592,"children":3593},{"style":60},[3594],{"type":14,"value":997},{"type":9,"tag":41,"props":3596,"children":3597},{"style":48},[3598],{"type":14,"value":334},{"type":9,"tag":41,"props":3600,"children":3601},{"style":71},[3602],{"type":14,"value":3488},{"type":9,"tag":41,"props":3604,"children":3605},{"style":48},[3606],{"type":14,"value":375},{"type":9,"tag":41,"props":3608,"children":3609},{"class":43,"line":505},[3610,3614,3618],{"type":9,"tag":41,"props":3611,"children":3612},{"style":48},[3613],{"type":14,"value":324},{"type":9,"tag":41,"props":3615,"children":3616},{"style":60},[3617],{"type":14,"value":388},{"type":9,"tag":41,"props":3619,"children":3620},{"style":48},[3621],{"type":14,"value":256},{"type":9,"tag":41,"props":3623,"children":3624},{"class":43,"line":523},[3625,3629],{"type":9,"tag":41,"props":3626,"children":3627},{"style":48},[3628],{"type":14,"value":292},{"type":9,"tag":41,"props":3630,"children":3631},{"style":71},[3632],{"type":14,"value":3633},"'单选组'\n",{"type":9,"tag":41,"props":3635,"children":3636},{"class":43,"line":542},[3637],{"type":9,"tag":41,"props":3638,"children":3639},{"style":48},[3640],{"type":14,"value":414},{"type":9,"tag":41,"props":3642,"children":3643},{"class":43,"line":560},[3644],{"type":9,"tag":41,"props":3645,"children":3646},{"style":48},[3647],{"type":14,"value":423},{"type":9,"tag":41,"props":3649,"children":3650},{"class":43,"line":606},[3651],{"type":9,"tag":41,"props":3652,"children":3653},{"emptyLinePlaceholder":147},[3654],{"type":14,"value":150},{"type":9,"tag":41,"props":3656,"children":3657},{"class":43,"line":614},[3658,3662,3666,3670,3674,3678,3682,3686,3690,3694,3698,3702,3706,3710],{"type":9,"tag":41,"props":3659,"children":3660},{"style":91},[3661],{"type":14,"value":440},{"type":9,"tag":41,"props":3663,"children":3664},{"style":91},[3665],{"type":14,"value":445},{"type":9,"tag":41,"props":3667,"children":3668},{"style":60},[3669],{"type":14,"value":450},{"type":9,"tag":41,"props":3671,"children":3672},{"style":48},[3673],{"type":14,"value":334},{"type":9,"tag":41,"props":3675,"children":3676},{"style":337},[3677],{"type":14,"value":459},{"type":9,"tag":41,"props":3679,"children":3680},{"style":91},[3681],{"type":14,"value":464},{"type":9,"tag":41,"props":3683,"children":3684},{"style":60},[3685],{"type":14,"value":469},{"type":9,"tag":41,"props":3687,"children":3688},{"style":48},[3689],{"type":14,"value":51},{"type":9,"tag":41,"props":3691,"children":3692},{"style":60},[3693],{"type":14,"value":478},{"type":9,"tag":41,"props":3695,"children":3696},{"style":48},[3697],{"type":14,"value":483},{"type":9,"tag":41,"props":3699,"children":3700},{"style":60},[3701],{"type":14,"value":488},{"type":9,"tag":41,"props":3703,"children":3704},{"style":48},[3705],{"type":14,"value":51},{"type":9,"tag":41,"props":3707,"children":3708},{"style":91},[3709],{"type":14,"value":497},{"type":9,"tag":41,"props":3711,"children":3712},{"style":48},[3713],{"type":14,"value":502},{"type":9,"tag":41,"props":3715,"children":3716},{"class":43,"line":623},[3717,3721,3725],{"type":9,"tag":41,"props":3718,"children":3719},{"style":48},[3720],{"type":14,"value":511},{"type":9,"tag":41,"props":3722,"children":3723},{"style":60},[3724],{"type":14,"value":516},{"type":9,"tag":41,"props":3726,"children":3727},{"style":48},[3728],{"type":14,"value":256},{"type":9,"tag":41,"props":3730,"children":3731},{"class":43,"line":640},[3732,3736,3740],{"type":9,"tag":41,"props":3733,"children":3734},{"style":48},[3735],{"type":14,"value":529},{"type":9,"tag":41,"props":3737,"children":3738},{"style":71},[3739],{"type":14,"value":534},{"type":9,"tag":41,"props":3741,"children":3742},{"style":48},[3743],{"type":14,"value":539},{"type":9,"tag":41,"props":3745,"children":3746},{"class":43,"line":648},[3747,3751,3755],{"type":9,"tag":41,"props":3748,"children":3749},{"style":48},[3750],{"type":14,"value":548},{"type":9,"tag":41,"props":3752,"children":3753},{"style":71},[3754],{"type":14,"value":553},{"type":9,"tag":41,"props":3756,"children":3757},{"style":48},[3758],{"type":14,"value":539},{"type":9,"tag":41,"props":3760,"children":3761},{"class":43,"line":665},[3762,3766,3770,3774,3778,3782,3786,3790,3794],{"type":9,"tag":41,"props":3763,"children":3764},{"style":48},[3765],{"type":14,"value":566},{"type":9,"tag":41,"props":3767,"children":3768},{"style":167},[3769],{"type":14,"value":571},{"type":9,"tag":41,"props":3771,"children":3772},{"style":48},[3773],{"type":14,"value":483},{"type":9,"tag":41,"props":3775,"children":3776},{"style":60},[3777],{"type":14,"value":580},{"type":9,"tag":41,"props":3779,"children":3780},{"style":48},[3781],{"type":14,"value":585},{"type":9,"tag":41,"props":3783,"children":3784},{"style":167},[3785],{"type":14,"value":590},{"type":9,"tag":41,"props":3787,"children":3788},{"style":48},[3789],{"type":14,"value":365},{"type":9,"tag":41,"props":3791,"children":3792},{"style":167},[3793],{"type":14,"value":599},{"type":9,"tag":41,"props":3795,"children":3796},{"style":48},[3797],{"type":14,"value":375},{"type":9,"tag":41,"props":3799,"children":3800},{"class":43,"line":738},[3801],{"type":9,"tag":41,"props":3802,"children":3803},{"style":48},[3804],{"type":14,"value":315},{"type":9,"tag":41,"props":3806,"children":3807},{"class":43,"line":3093},[3808],{"type":9,"tag":41,"props":3809,"children":3810},{"style":48},[3811],{"type":14,"value":620},{"type":9,"tag":41,"props":3813,"children":3814},{"class":43,"line":3101},[3815,3819,3823],{"type":9,"tag":41,"props":3816,"children":3817},{"style":48},[3818],{"type":14,"value":629},{"type":9,"tag":41,"props":3820,"children":3821},{"style":54},[3822],{"type":14,"value":57},{"type":9,"tag":41,"props":3824,"children":3825},{"style":48},[3826],{"type":14,"value":84},{"type":9,"tag":41,"props":3828,"children":3829},{"class":43,"line":3117},[3830],{"type":9,"tag":41,"props":3831,"children":3832},{"emptyLinePlaceholder":147},[3833],{"type":14,"value":150},{"type":9,"tag":41,"props":3835,"children":3836},{"class":43,"line":3181},[3837,3841,3845],{"type":9,"tag":41,"props":3838,"children":3839},{"style":48},[3840],{"type":14,"value":51},{"type":9,"tag":41,"props":3842,"children":3843},{"style":54},[3844],{"type":14,"value":658},{"type":9,"tag":41,"props":3846,"children":3847},{"style":48},[3848],{"type":14,"value":84},{"type":9,"tag":41,"props":3850,"children":3852},{"class":43,"line":3851},36,[3853,3857,3861,3865,3869,3873,3877,3881,3885,3889,3893,3897,3901,3905,3909],{"type":9,"tag":41,"props":3854,"children":3855},{"style":48},[3856],{"type":14,"value":671},{"type":9,"tag":41,"props":3858,"children":3859},{"style":54},[3860],{"type":14,"value":676},{"type":9,"tag":41,"props":3862,"children":3863},{"style":48},[3864],{"type":14,"value":681},{"type":9,"tag":41,"props":3866,"children":3867},{"style":60},[3868],{"type":14,"value":686},{"type":9,"tag":41,"props":3870,"children":3871},{"style":48},[3872],{"type":14,"value":68},{"type":9,"tag":41,"props":3874,"children":3875},{"style":71},[3876],{"type":14,"value":695},{"type":9,"tag":41,"props":3878,"children":3879},{"style":48},[3880],{"type":14,"value":686},{"type":9,"tag":41,"props":3882,"children":3883},{"style":71},[3884],{"type":14,"value":695},{"type":9,"tag":41,"props":3886,"children":3887},{"style":48},[3888],{"type":14,"value":708},{"type":9,"tag":41,"props":3890,"children":3891},{"style":60},[3892],{"type":14,"value":713},{"type":9,"tag":41,"props":3894,"children":3895},{"style":48},[3896],{"type":14,"value":68},{"type":9,"tag":41,"props":3898,"children":3899},{"style":71},[3900],{"type":14,"value":695},{"type":9,"tag":41,"props":3902,"children":3903},{"style":48},[3904],{"type":14,"value":726},{"type":9,"tag":41,"props":3906,"children":3907},{"style":71},[3908],{"type":14,"value":695},{"type":9,"tag":41,"props":3910,"children":3911},{"style":48},[3912],{"type":14,"value":735},{"type":9,"tag":41,"props":3914,"children":3916},{"class":43,"line":3915},37,[3917,3921,3925],{"type":9,"tag":41,"props":3918,"children":3919},{"style":48},[3920],{"type":14,"value":629},{"type":9,"tag":41,"props":3922,"children":3923},{"style":54},[3924],{"type":14,"value":658},{"type":9,"tag":41,"props":3926,"children":3927},{"style":48},[3928],{"type":14,"value":84},{"type":9,"tag":753,"props":3930,"children":3931},{},[3932],{"type":14,"value":757},{"title":22,"searchDepth":87,"depth":87,"links":3934},[],{"code":3936,"filePath":3937,"pascalName":3938},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  status: afz.enum(['active', 'inactive', 'pending'])\n    .default('active')\n    .meta({\n      label: '选择框',\n      placeholder: '请选择状态',\n      hint: '基础枚举选择'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Ffield-types\u002FAutoFormFieldEnumSelectExample.vue","AutoFormFieldEnumSelectExample",{"data":3940,"body":3941,"toc":4550},{"title":22,"description":22},{"type":6,"children":3942},[3943,4546],{"type":9,"tag":26,"props":3944,"children":3945},{},[3946],{"type":9,"tag":30,"props":3947,"children":3949},{"className":32,"code":3948,"language":34,"meta":22,"style":22},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  status: afz.enum(['active', 'inactive', 'pending'])\n    .default('active')\n    .meta({\n      label: '选择框',\n      placeholder: '请选择状态',\n      hint: '基础枚举选择'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n\n",[3950],{"type":9,"tag":37,"props":3951,"children":3952},{"__ignoreMap":22},[3953,3984,4007,4030,4037,4068,4091,4098,4125,4170,4193,4208,4224,4241,4253,4260,4267,4274,4333,4348,4363,4378,4417,4424,4431,4446,4453,4468,4531],{"type":9,"tag":41,"props":3954,"children":3955},{"class":43,"line":44},[3956,3960,3964,3968,3972,3976,3980],{"type":9,"tag":41,"props":3957,"children":3958},{"style":48},[3959],{"type":14,"value":51},{"type":9,"tag":41,"props":3961,"children":3962},{"style":54},[3963],{"type":14,"value":57},{"type":9,"tag":41,"props":3965,"children":3966},{"style":60},[3967],{"type":14,"value":63},{"type":9,"tag":41,"props":3969,"children":3970},{"style":48},[3971],{"type":14,"value":68},{"type":9,"tag":41,"props":3973,"children":3974},{"style":71},[3975],{"type":14,"value":74},{"type":9,"tag":41,"props":3977,"children":3978},{"style":60},[3979],{"type":14,"value":79},{"type":9,"tag":41,"props":3981,"children":3982},{"style":48},[3983],{"type":14,"value":84},{"type":9,"tag":41,"props":3985,"children":3986},{"class":43,"line":87},[3987,3991,3995,3999,4003],{"type":9,"tag":41,"props":3988,"children":3989},{"style":91},[3990],{"type":14,"value":94},{"type":9,"tag":41,"props":3992,"children":3993},{"style":91},[3994],{"type":14,"value":99},{"type":9,"tag":41,"props":3996,"children":3997},{"style":48},[3998],{"type":14,"value":104},{"type":9,"tag":41,"props":4000,"children":4001},{"style":91},[4002],{"type":14,"value":109},{"type":9,"tag":41,"props":4004,"children":4005},{"style":71},[4006],{"type":14,"value":114},{"type":9,"tag":41,"props":4008,"children":4009},{"class":43,"line":117},[4010,4014,4018,4022,4026],{"type":9,"tag":41,"props":4011,"children":4012},{"style":91},[4013],{"type":14,"value":94},{"type":9,"tag":41,"props":4015,"children":4016},{"style":91},[4017],{"type":14,"value":99},{"type":9,"tag":41,"props":4019,"children":4020},{"style":48},[4021],{"type":14,"value":131},{"type":9,"tag":41,"props":4023,"children":4024},{"style":91},[4025],{"type":14,"value":109},{"type":9,"tag":41,"props":4027,"children":4028},{"style":71},[4029],{"type":14,"value":140},{"type":9,"tag":41,"props":4031,"children":4032},{"class":43,"line":143},[4033],{"type":9,"tag":41,"props":4034,"children":4035},{"emptyLinePlaceholder":147},[4036],{"type":14,"value":150},{"type":9,"tag":41,"props":4038,"children":4039},{"class":43,"line":153},[4040,4044,4048,4052,4056,4060,4064],{"type":9,"tag":41,"props":4041,"children":4042},{"style":91},[4043],{"type":14,"value":159},{"type":9,"tag":41,"props":4045,"children":4046},{"style":48},[4047],{"type":14,"value":164},{"type":9,"tag":41,"props":4049,"children":4050},{"style":167},[4051],{"type":14,"value":170},{"type":9,"tag":41,"props":4053,"children":4054},{"style":48},[4055],{"type":14,"value":175},{"type":9,"tag":41,"props":4057,"children":4058},{"style":91},[4059],{"type":14,"value":68},{"type":9,"tag":41,"props":4061,"children":4062},{"style":60},[4063],{"type":14,"value":184},{"type":9,"tag":41,"props":4065,"children":4066},{"style":48},[4067],{"type":14,"value":189},{"type":9,"tag":41,"props":4069,"children":4070},{"class":43,"line":192},[4071,4075,4079,4083,4087],{"type":9,"tag":41,"props":4072,"children":4073},{"style":91},[4074],{"type":14,"value":159},{"type":9,"tag":41,"props":4076,"children":4077},{"style":167},[4078],{"type":14,"value":202},{"type":9,"tag":41,"props":4080,"children":4081},{"style":91},[4082],{"type":14,"value":207},{"type":9,"tag":41,"props":4084,"children":4085},{"style":60},[4086],{"type":14,"value":212},{"type":9,"tag":41,"props":4088,"children":4089},{"style":48},[4090],{"type":14,"value":189},{"type":9,"tag":41,"props":4092,"children":4093},{"class":43,"line":219},[4094],{"type":9,"tag":41,"props":4095,"children":4096},{"emptyLinePlaceholder":147},[4097],{"type":14,"value":150},{"type":9,"tag":41,"props":4099,"children":4100},{"class":43,"line":227},[4101,4105,4109,4113,4117,4121],{"type":9,"tag":41,"props":4102,"children":4103},{"style":91},[4104],{"type":14,"value":159},{"type":9,"tag":41,"props":4106,"children":4107},{"style":167},[4108],{"type":14,"value":237},{"type":9,"tag":41,"props":4110,"children":4111},{"style":91},[4112],{"type":14,"value":207},{"type":9,"tag":41,"props":4114,"children":4115},{"style":48},[4116],{"type":14,"value":246},{"type":9,"tag":41,"props":4118,"children":4119},{"style":60},[4120],{"type":14,"value":251},{"type":9,"tag":41,"props":4122,"children":4123},{"style":48},[4124],{"type":14,"value":256},{"type":9,"tag":41,"props":4126,"children":4127},{"class":43,"line":259},[4128,4133,4137,4142,4147,4151,4156,4160,4165],{"type":9,"tag":41,"props":4129,"children":4130},{"style":48},[4131],{"type":14,"value":4132},"  status: afz.",{"type":9,"tag":41,"props":4134,"children":4135},{"style":60},[4136],{"type":14,"value":3403},{"type":9,"tag":41,"props":4138,"children":4139},{"style":48},[4140],{"type":14,"value":4141},"([",{"type":9,"tag":41,"props":4143,"children":4144},{"style":71},[4145],{"type":14,"value":4146},"'active'",{"type":9,"tag":41,"props":4148,"children":4149},{"style":48},[4150],{"type":14,"value":365},{"type":9,"tag":41,"props":4152,"children":4153},{"style":71},[4154],{"type":14,"value":4155},"'inactive'",{"type":9,"tag":41,"props":4157,"children":4158},{"style":48},[4159],{"type":14,"value":365},{"type":9,"tag":41,"props":4161,"children":4162},{"style":71},[4163],{"type":14,"value":4164},"'pending'",{"type":9,"tag":41,"props":4166,"children":4167},{"style":48},[4168],{"type":14,"value":4169},"])\n",{"type":9,"tag":41,"props":4171,"children":4172},{"class":43,"line":277},[4173,4177,4181,4185,4189],{"type":9,"tag":41,"props":4174,"children":4175},{"style":48},[4176],{"type":14,"value":324},{"type":9,"tag":41,"props":4178,"children":4179},{"style":60},[4180],{"type":14,"value":997},{"type":9,"tag":41,"props":4182,"children":4183},{"style":48},[4184],{"type":14,"value":334},{"type":9,"tag":41,"props":4186,"children":4187},{"style":71},[4188],{"type":14,"value":4146},{"type":9,"tag":41,"props":4190,"children":4191},{"style":48},[4192],{"type":14,"value":375},{"type":9,"tag":41,"props":4194,"children":4195},{"class":43,"line":286},[4196,4200,4204],{"type":9,"tag":41,"props":4197,"children":4198},{"style":48},[4199],{"type":14,"value":324},{"type":9,"tag":41,"props":4201,"children":4202},{"style":60},[4203],{"type":14,"value":388},{"type":9,"tag":41,"props":4205,"children":4206},{"style":48},[4207],{"type":14,"value":256},{"type":9,"tag":41,"props":4209,"children":4210},{"class":43,"line":300},[4211,4215,4220],{"type":9,"tag":41,"props":4212,"children":4213},{"style":48},[4214],{"type":14,"value":292},{"type":9,"tag":41,"props":4216,"children":4217},{"style":71},[4218],{"type":14,"value":4219},"'选择框'",{"type":9,"tag":41,"props":4221,"children":4222},{"style":48},[4223],{"type":14,"value":539},{"type":9,"tag":41,"props":4225,"children":4226},{"class":43,"line":309},[4227,4232,4237],{"type":9,"tag":41,"props":4228,"children":4229},{"style":48},[4230],{"type":14,"value":4231},"      placeholder: ",{"type":9,"tag":41,"props":4233,"children":4234},{"style":71},[4235],{"type":14,"value":4236},"'请选择状态'",{"type":9,"tag":41,"props":4238,"children":4239},{"style":48},[4240],{"type":14,"value":539},{"type":9,"tag":41,"props":4242,"children":4243},{"class":43,"line":318},[4244,4248],{"type":9,"tag":41,"props":4245,"children":4246},{"style":48},[4247],{"type":14,"value":1049},{"type":9,"tag":41,"props":4249,"children":4250},{"style":71},[4251],{"type":14,"value":4252},"'基础枚举选择'\n",{"type":9,"tag":41,"props":4254,"children":4255},{"class":43,"line":378},[4256],{"type":9,"tag":41,"props":4257,"children":4258},{"style":48},[4259],{"type":14,"value":414},{"type":9,"tag":41,"props":4261,"children":4262},{"class":43,"line":395},[4263],{"type":9,"tag":41,"props":4264,"children":4265},{"style":48},[4266],{"type":14,"value":423},{"type":9,"tag":41,"props":4268,"children":4269},{"class":43,"line":408},[4270],{"type":9,"tag":41,"props":4271,"children":4272},{"emptyLinePlaceholder":147},[4273],{"type":14,"value":150},{"type":9,"tag":41,"props":4275,"children":4276},{"class":43,"line":417},[4277,4281,4285,4289,4293,4297,4301,4305,4309,4313,4317,4321,4325,4329],{"type":9,"tag":41,"props":4278,"children":4279},{"style":91},[4280],{"type":14,"value":440},{"type":9,"tag":41,"props":4282,"children":4283},{"style":91},[4284],{"type":14,"value":445},{"type":9,"tag":41,"props":4286,"children":4287},{"style":60},[4288],{"type":14,"value":450},{"type":9,"tag":41,"props":4290,"children":4291},{"style":48},[4292],{"type":14,"value":334},{"type":9,"tag":41,"props":4294,"children":4295},{"style":337},[4296],{"type":14,"value":459},{"type":9,"tag":41,"props":4298,"children":4299},{"style":91},[4300],{"type":14,"value":464},{"type":9,"tag":41,"props":4302,"children":4303},{"style":60},[4304],{"type":14,"value":469},{"type":9,"tag":41,"props":4306,"children":4307},{"style":48},[4308],{"type":14,"value":51},{"type":9,"tag":41,"props":4310,"children":4311},{"style":60},[4312],{"type":14,"value":478},{"type":9,"tag":41,"props":4314,"children":4315},{"style":48},[4316],{"type":14,"value":483},{"type":9,"tag":41,"props":4318,"children":4319},{"style":60},[4320],{"type":14,"value":488},{"type":9,"tag":41,"props":4322,"children":4323},{"style":48},[4324],{"type":14,"value":51},{"type":9,"tag":41,"props":4326,"children":4327},{"style":91},[4328],{"type":14,"value":497},{"type":9,"tag":41,"props":4330,"children":4331},{"style":48},[4332],{"type":14,"value":502},{"type":9,"tag":41,"props":4334,"children":4335},{"class":43,"line":426},[4336,4340,4344],{"type":9,"tag":41,"props":4337,"children":4338},{"style":48},[4339],{"type":14,"value":511},{"type":9,"tag":41,"props":4341,"children":4342},{"style":60},[4343],{"type":14,"value":516},{"type":9,"tag":41,"props":4345,"children":4346},{"style":48},[4347],{"type":14,"value":256},{"type":9,"tag":41,"props":4349,"children":4350},{"class":43,"line":434},[4351,4355,4359],{"type":9,"tag":41,"props":4352,"children":4353},{"style":48},[4354],{"type":14,"value":529},{"type":9,"tag":41,"props":4356,"children":4357},{"style":71},[4358],{"type":14,"value":534},{"type":9,"tag":41,"props":4360,"children":4361},{"style":48},[4362],{"type":14,"value":539},{"type":9,"tag":41,"props":4364,"children":4365},{"class":43,"line":505},[4366,4370,4374],{"type":9,"tag":41,"props":4367,"children":4368},{"style":48},[4369],{"type":14,"value":548},{"type":9,"tag":41,"props":4371,"children":4372},{"style":71},[4373],{"type":14,"value":553},{"type":9,"tag":41,"props":4375,"children":4376},{"style":48},[4377],{"type":14,"value":539},{"type":9,"tag":41,"props":4379,"children":4380},{"class":43,"line":523},[4381,4385,4389,4393,4397,4401,4405,4409,4413],{"type":9,"tag":41,"props":4382,"children":4383},{"style":48},[4384],{"type":14,"value":566},{"type":9,"tag":41,"props":4386,"children":4387},{"style":167},[4388],{"type":14,"value":571},{"type":9,"tag":41,"props":4390,"children":4391},{"style":48},[4392],{"type":14,"value":483},{"type":9,"tag":41,"props":4394,"children":4395},{"style":60},[4396],{"type":14,"value":580},{"type":9,"tag":41,"props":4398,"children":4399},{"style":48},[4400],{"type":14,"value":585},{"type":9,"tag":41,"props":4402,"children":4403},{"style":167},[4404],{"type":14,"value":590},{"type":9,"tag":41,"props":4406,"children":4407},{"style":48},[4408],{"type":14,"value":365},{"type":9,"tag":41,"props":4410,"children":4411},{"style":167},[4412],{"type":14,"value":599},{"type":9,"tag":41,"props":4414,"children":4415},{"style":48},[4416],{"type":14,"value":375},{"type":9,"tag":41,"props":4418,"children":4419},{"class":43,"line":542},[4420],{"type":9,"tag":41,"props":4421,"children":4422},{"style":48},[4423],{"type":14,"value":315},{"type":9,"tag":41,"props":4425,"children":4426},{"class":43,"line":560},[4427],{"type":9,"tag":41,"props":4428,"children":4429},{"style":48},[4430],{"type":14,"value":620},{"type":9,"tag":41,"props":4432,"children":4433},{"class":43,"line":606},[4434,4438,4442],{"type":9,"tag":41,"props":4435,"children":4436},{"style":48},[4437],{"type":14,"value":629},{"type":9,"tag":41,"props":4439,"children":4440},{"style":54},[4441],{"type":14,"value":57},{"type":9,"tag":41,"props":4443,"children":4444},{"style":48},[4445],{"type":14,"value":84},{"type":9,"tag":41,"props":4447,"children":4448},{"class":43,"line":614},[4449],{"type":9,"tag":41,"props":4450,"children":4451},{"emptyLinePlaceholder":147},[4452],{"type":14,"value":150},{"type":9,"tag":41,"props":4454,"children":4455},{"class":43,"line":623},[4456,4460,4464],{"type":9,"tag":41,"props":4457,"children":4458},{"style":48},[4459],{"type":14,"value":51},{"type":9,"tag":41,"props":4461,"children":4462},{"style":54},[4463],{"type":14,"value":658},{"type":9,"tag":41,"props":4465,"children":4466},{"style":48},[4467],{"type":14,"value":84},{"type":9,"tag":41,"props":4469,"children":4470},{"class":43,"line":640},[4471,4475,4479,4483,4487,4491,4495,4499,4503,4507,4511,4515,4519,4523,4527],{"type":9,"tag":41,"props":4472,"children":4473},{"style":48},[4474],{"type":14,"value":671},{"type":9,"tag":41,"props":4476,"children":4477},{"style":54},[4478],{"type":14,"value":676},{"type":9,"tag":41,"props":4480,"children":4481},{"style":48},[4482],{"type":14,"value":681},{"type":9,"tag":41,"props":4484,"children":4485},{"style":60},[4486],{"type":14,"value":686},{"type":9,"tag":41,"props":4488,"children":4489},{"style":48},[4490],{"type":14,"value":68},{"type":9,"tag":41,"props":4492,"children":4493},{"style":71},[4494],{"type":14,"value":695},{"type":9,"tag":41,"props":4496,"children":4497},{"style":48},[4498],{"type":14,"value":686},{"type":9,"tag":41,"props":4500,"children":4501},{"style":71},[4502],{"type":14,"value":695},{"type":9,"tag":41,"props":4504,"children":4505},{"style":48},[4506],{"type":14,"value":708},{"type":9,"tag":41,"props":4508,"children":4509},{"style":60},[4510],{"type":14,"value":713},{"type":9,"tag":41,"props":4512,"children":4513},{"style":48},[4514],{"type":14,"value":68},{"type":9,"tag":41,"props":4516,"children":4517},{"style":71},[4518],{"type":14,"value":695},{"type":9,"tag":41,"props":4520,"children":4521},{"style":48},[4522],{"type":14,"value":726},{"type":9,"tag":41,"props":4524,"children":4525},{"style":71},[4526],{"type":14,"value":695},{"type":9,"tag":41,"props":4528,"children":4529},{"style":48},[4530],{"type":14,"value":735},{"type":9,"tag":41,"props":4532,"children":4533},{"class":43,"line":648},[4534,4538,4542],{"type":9,"tag":41,"props":4535,"children":4536},{"style":48},[4537],{"type":14,"value":629},{"type":9,"tag":41,"props":4539,"children":4540},{"style":54},[4541],{"type":14,"value":658},{"type":9,"tag":41,"props":4543,"children":4544},{"style":48},[4545],{"type":14,"value":84},{"type":9,"tag":753,"props":4547,"children":4548},{},[4549],{"type":14,"value":757},{"title":22,"searchDepth":87,"depth":87,"links":4551},[],{"code":4553,"filePath":4554,"pascalName":4555},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  fruit: afz.enum([], {\n    type: 'selectMenu',\n    controlProps: {\n      placeholder: '选择水果',\n      valueKey: 'value',\n      items: [\n        { label: '苹果', value: 'apple' },\n        { label: '香蕉', value: 'banana' },\n        { label: '橙子', value: 'orange' }\n      ]\n    }\n  })\n    .meta({\n      label: '下拉菜单'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Ffield-types\u002FAutoFormFieldEnumSelectMenuExample.vue","AutoFormFieldEnumSelectMenuExample",{"data":4557,"body":4558,"toc":5241},{"title":22,"description":22},{"type":6,"children":4559},[4560,5237],{"type":9,"tag":26,"props":4561,"children":4562},{},[4563],{"type":9,"tag":30,"props":4564,"children":4566},{"className":32,"code":4565,"language":34,"meta":22,"style":22},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  fruit: afz.enum([], {\n    type: 'selectMenu',\n    controlProps: {\n      placeholder: '选择水果',\n      valueKey: 'value',\n      items: [\n        { label: '苹果', value: 'apple' },\n        { label: '香蕉', value: 'banana' },\n        { label: '橙子', value: 'orange' }\n      ]\n    }\n  })\n    .meta({\n      label: '下拉菜单'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n\n",[4567],{"type":9,"tag":37,"props":4568,"children":4569},{"__ignoreMap":22},[4570,4601,4624,4647,4654,4685,4708,4715,4742,4758,4774,4781,4797,4813,4820,4846,4871,4896,4903,4910,4917,4932,4944,4951,4958,4965,5024,5039,5054,5069,5108,5115,5122,5137,5144,5159,5222],{"type":9,"tag":41,"props":4571,"children":4572},{"class":43,"line":44},[4573,4577,4581,4585,4589,4593,4597],{"type":9,"tag":41,"props":4574,"children":4575},{"style":48},[4576],{"type":14,"value":51},{"type":9,"tag":41,"props":4578,"children":4579},{"style":54},[4580],{"type":14,"value":57},{"type":9,"tag":41,"props":4582,"children":4583},{"style":60},[4584],{"type":14,"value":63},{"type":9,"tag":41,"props":4586,"children":4587},{"style":48},[4588],{"type":14,"value":68},{"type":9,"tag":41,"props":4590,"children":4591},{"style":71},[4592],{"type":14,"value":74},{"type":9,"tag":41,"props":4594,"children":4595},{"style":60},[4596],{"type":14,"value":79},{"type":9,"tag":41,"props":4598,"children":4599},{"style":48},[4600],{"type":14,"value":84},{"type":9,"tag":41,"props":4602,"children":4603},{"class":43,"line":87},[4604,4608,4612,4616,4620],{"type":9,"tag":41,"props":4605,"children":4606},{"style":91},[4607],{"type":14,"value":94},{"type":9,"tag":41,"props":4609,"children":4610},{"style":91},[4611],{"type":14,"value":99},{"type":9,"tag":41,"props":4613,"children":4614},{"style":48},[4615],{"type":14,"value":104},{"type":9,"tag":41,"props":4617,"children":4618},{"style":91},[4619],{"type":14,"value":109},{"type":9,"tag":41,"props":4621,"children":4622},{"style":71},[4623],{"type":14,"value":114},{"type":9,"tag":41,"props":4625,"children":4626},{"class":43,"line":117},[4627,4631,4635,4639,4643],{"type":9,"tag":41,"props":4628,"children":4629},{"style":91},[4630],{"type":14,"value":94},{"type":9,"tag":41,"props":4632,"children":4633},{"style":91},[4634],{"type":14,"value":99},{"type":9,"tag":41,"props":4636,"children":4637},{"style":48},[4638],{"type":14,"value":131},{"type":9,"tag":41,"props":4640,"children":4641},{"style":91},[4642],{"type":14,"value":109},{"type":9,"tag":41,"props":4644,"children":4645},{"style":71},[4646],{"type":14,"value":140},{"type":9,"tag":41,"props":4648,"children":4649},{"class":43,"line":143},[4650],{"type":9,"tag":41,"props":4651,"children":4652},{"emptyLinePlaceholder":147},[4653],{"type":14,"value":150},{"type":9,"tag":41,"props":4655,"children":4656},{"class":43,"line":153},[4657,4661,4665,4669,4673,4677,4681],{"type":9,"tag":41,"props":4658,"children":4659},{"style":91},[4660],{"type":14,"value":159},{"type":9,"tag":41,"props":4662,"children":4663},{"style":48},[4664],{"type":14,"value":164},{"type":9,"tag":41,"props":4666,"children":4667},{"style":167},[4668],{"type":14,"value":170},{"type":9,"tag":41,"props":4670,"children":4671},{"style":48},[4672],{"type":14,"value":175},{"type":9,"tag":41,"props":4674,"children":4675},{"style":91},[4676],{"type":14,"value":68},{"type":9,"tag":41,"props":4678,"children":4679},{"style":60},[4680],{"type":14,"value":184},{"type":9,"tag":41,"props":4682,"children":4683},{"style":48},[4684],{"type":14,"value":189},{"type":9,"tag":41,"props":4686,"children":4687},{"class":43,"line":192},[4688,4692,4696,4700,4704],{"type":9,"tag":41,"props":4689,"children":4690},{"style":91},[4691],{"type":14,"value":159},{"type":9,"tag":41,"props":4693,"children":4694},{"style":167},[4695],{"type":14,"value":202},{"type":9,"tag":41,"props":4697,"children":4698},{"style":91},[4699],{"type":14,"value":207},{"type":9,"tag":41,"props":4701,"children":4702},{"style":60},[4703],{"type":14,"value":212},{"type":9,"tag":41,"props":4705,"children":4706},{"style":48},[4707],{"type":14,"value":189},{"type":9,"tag":41,"props":4709,"children":4710},{"class":43,"line":219},[4711],{"type":9,"tag":41,"props":4712,"children":4713},{"emptyLinePlaceholder":147},[4714],{"type":14,"value":150},{"type":9,"tag":41,"props":4716,"children":4717},{"class":43,"line":227},[4718,4722,4726,4730,4734,4738],{"type":9,"tag":41,"props":4719,"children":4720},{"style":91},[4721],{"type":14,"value":159},{"type":9,"tag":41,"props":4723,"children":4724},{"style":167},[4725],{"type":14,"value":237},{"type":9,"tag":41,"props":4727,"children":4728},{"style":91},[4729],{"type":14,"value":207},{"type":9,"tag":41,"props":4731,"children":4732},{"style":48},[4733],{"type":14,"value":246},{"type":9,"tag":41,"props":4735,"children":4736},{"style":60},[4737],{"type":14,"value":251},{"type":9,"tag":41,"props":4739,"children":4740},{"style":48},[4741],{"type":14,"value":256},{"type":9,"tag":41,"props":4743,"children":4744},{"class":43,"line":259},[4745,4750,4754],{"type":9,"tag":41,"props":4746,"children":4747},{"style":48},[4748],{"type":14,"value":4749},"  fruit: afz.",{"type":9,"tag":41,"props":4751,"children":4752},{"style":60},[4753],{"type":14,"value":3403},{"type":9,"tag":41,"props":4755,"children":4756},{"style":48},[4757],{"type":14,"value":3408},{"type":9,"tag":41,"props":4759,"children":4760},{"class":43,"line":277},[4761,4765,4770],{"type":9,"tag":41,"props":4762,"children":4763},{"style":48},[4764],{"type":14,"value":973},{"type":9,"tag":41,"props":4766,"children":4767},{"style":71},[4768],{"type":14,"value":4769},"'selectMenu'",{"type":9,"tag":41,"props":4771,"children":4772},{"style":48},[4773],{"type":14,"value":539},{"type":9,"tag":41,"props":4775,"children":4776},{"class":43,"line":286},[4777],{"type":9,"tag":41,"props":4778,"children":4779},{"style":48},[4780],{"type":14,"value":283},{"type":9,"tag":41,"props":4782,"children":4783},{"class":43,"line":300},[4784,4788,4793],{"type":9,"tag":41,"props":4785,"children":4786},{"style":48},[4787],{"type":14,"value":4231},{"type":9,"tag":41,"props":4789,"children":4790},{"style":71},[4791],{"type":14,"value":4792},"'选择水果'",{"type":9,"tag":41,"props":4794,"children":4795},{"style":48},[4796],{"type":14,"value":539},{"type":9,"tag":41,"props":4798,"children":4799},{"class":43,"line":309},[4800,4804,4809],{"type":9,"tag":41,"props":4801,"children":4802},{"style":48},[4803],{"type":14,"value":3439},{"type":9,"tag":41,"props":4805,"children":4806},{"style":71},[4807],{"type":14,"value":4808},"'value'",{"type":9,"tag":41,"props":4810,"children":4811},{"style":48},[4812],{"type":14,"value":539},{"type":9,"tag":41,"props":4814,"children":4815},{"class":43,"line":318},[4816],{"type":9,"tag":41,"props":4817,"children":4818},{"style":48},[4819],{"type":14,"value":3456},{"type":9,"tag":41,"props":4821,"children":4822},{"class":43,"line":378},[4823,4827,4832,4837,4842],{"type":9,"tag":41,"props":4824,"children":4825},{"style":48},[4826],{"type":14,"value":3464},{"type":9,"tag":41,"props":4828,"children":4829},{"style":71},[4830],{"type":14,"value":4831},"'苹果'",{"type":9,"tag":41,"props":4833,"children":4834},{"style":48},[4835],{"type":14,"value":4836},", value: ",{"type":9,"tag":41,"props":4838,"children":4839},{"style":71},[4840],{"type":14,"value":4841},"'apple'",{"type":9,"tag":41,"props":4843,"children":4844},{"style":48},[4845],{"type":14,"value":3493},{"type":9,"tag":41,"props":4847,"children":4848},{"class":43,"line":395},[4849,4853,4858,4862,4867],{"type":9,"tag":41,"props":4850,"children":4851},{"style":48},[4852],{"type":14,"value":3464},{"type":9,"tag":41,"props":4854,"children":4855},{"style":71},[4856],{"type":14,"value":4857},"'香蕉'",{"type":9,"tag":41,"props":4859,"children":4860},{"style":48},[4861],{"type":14,"value":4836},{"type":9,"tag":41,"props":4863,"children":4864},{"style":71},[4865],{"type":14,"value":4866},"'banana'",{"type":9,"tag":41,"props":4868,"children":4869},{"style":48},[4870],{"type":14,"value":3493},{"type":9,"tag":41,"props":4872,"children":4873},{"class":43,"line":408},[4874,4878,4883,4887,4892],{"type":9,"tag":41,"props":4875,"children":4876},{"style":48},[4877],{"type":14,"value":3464},{"type":9,"tag":41,"props":4879,"children":4880},{"style":71},[4881],{"type":14,"value":4882},"'橙子'",{"type":9,"tag":41,"props":4884,"children":4885},{"style":48},[4886],{"type":14,"value":4836},{"type":9,"tag":41,"props":4888,"children":4889},{"style":71},[4890],{"type":14,"value":4891},"'orange'",{"type":9,"tag":41,"props":4893,"children":4894},{"style":48},[4895],{"type":14,"value":1550},{"type":9,"tag":41,"props":4897,"children":4898},{"class":43,"line":417},[4899],{"type":9,"tag":41,"props":4900,"children":4901},{"style":48},[4902],{"type":14,"value":3569},{"type":9,"tag":41,"props":4904,"children":4905},{"class":43,"line":426},[4906],{"type":9,"tag":41,"props":4907,"children":4908},{"style":48},[4909],{"type":14,"value":306},{"type":9,"tag":41,"props":4911,"children":4912},{"class":43,"line":434},[4913],{"type":9,"tag":41,"props":4914,"children":4915},{"style":48},[4916],{"type":14,"value":315},{"type":9,"tag":41,"props":4918,"children":4919},{"class":43,"line":505},[4920,4924,4928],{"type":9,"tag":41,"props":4921,"children":4922},{"style":48},[4923],{"type":14,"value":324},{"type":9,"tag":41,"props":4925,"children":4926},{"style":60},[4927],{"type":14,"value":388},{"type":9,"tag":41,"props":4929,"children":4930},{"style":48},[4931],{"type":14,"value":256},{"type":9,"tag":41,"props":4933,"children":4934},{"class":43,"line":523},[4935,4939],{"type":9,"tag":41,"props":4936,"children":4937},{"style":48},[4938],{"type":14,"value":292},{"type":9,"tag":41,"props":4940,"children":4941},{"style":71},[4942],{"type":14,"value":4943},"'下拉菜单'\n",{"type":9,"tag":41,"props":4945,"children":4946},{"class":43,"line":542},[4947],{"type":9,"tag":41,"props":4948,"children":4949},{"style":48},[4950],{"type":14,"value":414},{"type":9,"tag":41,"props":4952,"children":4953},{"class":43,"line":560},[4954],{"type":9,"tag":41,"props":4955,"children":4956},{"style":48},[4957],{"type":14,"value":423},{"type":9,"tag":41,"props":4959,"children":4960},{"class":43,"line":606},[4961],{"type":9,"tag":41,"props":4962,"children":4963},{"emptyLinePlaceholder":147},[4964],{"type":14,"value":150},{"type":9,"tag":41,"props":4966,"children":4967},{"class":43,"line":614},[4968,4972,4976,4980,4984,4988,4992,4996,5000,5004,5008,5012,5016,5020],{"type":9,"tag":41,"props":4969,"children":4970},{"style":91},[4971],{"type":14,"value":440},{"type":9,"tag":41,"props":4973,"children":4974},{"style":91},[4975],{"type":14,"value":445},{"type":9,"tag":41,"props":4977,"children":4978},{"style":60},[4979],{"type":14,"value":450},{"type":9,"tag":41,"props":4981,"children":4982},{"style":48},[4983],{"type":14,"value":334},{"type":9,"tag":41,"props":4985,"children":4986},{"style":337},[4987],{"type":14,"value":459},{"type":9,"tag":41,"props":4989,"children":4990},{"style":91},[4991],{"type":14,"value":464},{"type":9,"tag":41,"props":4993,"children":4994},{"style":60},[4995],{"type":14,"value":469},{"type":9,"tag":41,"props":4997,"children":4998},{"style":48},[4999],{"type":14,"value":51},{"type":9,"tag":41,"props":5001,"children":5002},{"style":60},[5003],{"type":14,"value":478},{"type":9,"tag":41,"props":5005,"children":5006},{"style":48},[5007],{"type":14,"value":483},{"type":9,"tag":41,"props":5009,"children":5010},{"style":60},[5011],{"type":14,"value":488},{"type":9,"tag":41,"props":5013,"children":5014},{"style":48},[5015],{"type":14,"value":51},{"type":9,"tag":41,"props":5017,"children":5018},{"style":91},[5019],{"type":14,"value":497},{"type":9,"tag":41,"props":5021,"children":5022},{"style":48},[5023],{"type":14,"value":502},{"type":9,"tag":41,"props":5025,"children":5026},{"class":43,"line":623},[5027,5031,5035],{"type":9,"tag":41,"props":5028,"children":5029},{"style":48},[5030],{"type":14,"value":511},{"type":9,"tag":41,"props":5032,"children":5033},{"style":60},[5034],{"type":14,"value":516},{"type":9,"tag":41,"props":5036,"children":5037},{"style":48},[5038],{"type":14,"value":256},{"type":9,"tag":41,"props":5040,"children":5041},{"class":43,"line":640},[5042,5046,5050],{"type":9,"tag":41,"props":5043,"children":5044},{"style":48},[5045],{"type":14,"value":529},{"type":9,"tag":41,"props":5047,"children":5048},{"style":71},[5049],{"type":14,"value":534},{"type":9,"tag":41,"props":5051,"children":5052},{"style":48},[5053],{"type":14,"value":539},{"type":9,"tag":41,"props":5055,"children":5056},{"class":43,"line":648},[5057,5061,5065],{"type":9,"tag":41,"props":5058,"children":5059},{"style":48},[5060],{"type":14,"value":548},{"type":9,"tag":41,"props":5062,"children":5063},{"style":71},[5064],{"type":14,"value":553},{"type":9,"tag":41,"props":5066,"children":5067},{"style":48},[5068],{"type":14,"value":539},{"type":9,"tag":41,"props":5070,"children":5071},{"class":43,"line":665},[5072,5076,5080,5084,5088,5092,5096,5100,5104],{"type":9,"tag":41,"props":5073,"children":5074},{"style":48},[5075],{"type":14,"value":566},{"type":9,"tag":41,"props":5077,"children":5078},{"style":167},[5079],{"type":14,"value":571},{"type":9,"tag":41,"props":5081,"children":5082},{"style":48},[5083],{"type":14,"value":483},{"type":9,"tag":41,"props":5085,"children":5086},{"style":60},[5087],{"type":14,"value":580},{"type":9,"tag":41,"props":5089,"children":5090},{"style":48},[5091],{"type":14,"value":585},{"type":9,"tag":41,"props":5093,"children":5094},{"style":167},[5095],{"type":14,"value":590},{"type":9,"tag":41,"props":5097,"children":5098},{"style":48},[5099],{"type":14,"value":365},{"type":9,"tag":41,"props":5101,"children":5102},{"style":167},[5103],{"type":14,"value":599},{"type":9,"tag":41,"props":5105,"children":5106},{"style":48},[5107],{"type":14,"value":375},{"type":9,"tag":41,"props":5109,"children":5110},{"class":43,"line":738},[5111],{"type":9,"tag":41,"props":5112,"children":5113},{"style":48},[5114],{"type":14,"value":315},{"type":9,"tag":41,"props":5116,"children":5117},{"class":43,"line":3093},[5118],{"type":9,"tag":41,"props":5119,"children":5120},{"style":48},[5121],{"type":14,"value":620},{"type":9,"tag":41,"props":5123,"children":5124},{"class":43,"line":3101},[5125,5129,5133],{"type":9,"tag":41,"props":5126,"children":5127},{"style":48},[5128],{"type":14,"value":629},{"type":9,"tag":41,"props":5130,"children":5131},{"style":54},[5132],{"type":14,"value":57},{"type":9,"tag":41,"props":5134,"children":5135},{"style":48},[5136],{"type":14,"value":84},{"type":9,"tag":41,"props":5138,"children":5139},{"class":43,"line":3117},[5140],{"type":9,"tag":41,"props":5141,"children":5142},{"emptyLinePlaceholder":147},[5143],{"type":14,"value":150},{"type":9,"tag":41,"props":5145,"children":5146},{"class":43,"line":3181},[5147,5151,5155],{"type":9,"tag":41,"props":5148,"children":5149},{"style":48},[5150],{"type":14,"value":51},{"type":9,"tag":41,"props":5152,"children":5153},{"style":54},[5154],{"type":14,"value":658},{"type":9,"tag":41,"props":5156,"children":5157},{"style":48},[5158],{"type":14,"value":84},{"type":9,"tag":41,"props":5160,"children":5161},{"class":43,"line":3851},[5162,5166,5170,5174,5178,5182,5186,5190,5194,5198,5202,5206,5210,5214,5218],{"type":9,"tag":41,"props":5163,"children":5164},{"style":48},[5165],{"type":14,"value":671},{"type":9,"tag":41,"props":5167,"children":5168},{"style":54},[5169],{"type":14,"value":676},{"type":9,"tag":41,"props":5171,"children":5172},{"style":48},[5173],{"type":14,"value":681},{"type":9,"tag":41,"props":5175,"children":5176},{"style":60},[5177],{"type":14,"value":686},{"type":9,"tag":41,"props":5179,"children":5180},{"style":48},[5181],{"type":14,"value":68},{"type":9,"tag":41,"props":5183,"children":5184},{"style":71},[5185],{"type":14,"value":695},{"type":9,"tag":41,"props":5187,"children":5188},{"style":48},[5189],{"type":14,"value":686},{"type":9,"tag":41,"props":5191,"children":5192},{"style":71},[5193],{"type":14,"value":695},{"type":9,"tag":41,"props":5195,"children":5196},{"style":48},[5197],{"type":14,"value":708},{"type":9,"tag":41,"props":5199,"children":5200},{"style":60},[5201],{"type":14,"value":713},{"type":9,"tag":41,"props":5203,"children":5204},{"style":48},[5205],{"type":14,"value":68},{"type":9,"tag":41,"props":5207,"children":5208},{"style":71},[5209],{"type":14,"value":695},{"type":9,"tag":41,"props":5211,"children":5212},{"style":48},[5213],{"type":14,"value":726},{"type":9,"tag":41,"props":5215,"children":5216},{"style":71},[5217],{"type":14,"value":695},{"type":9,"tag":41,"props":5219,"children":5220},{"style":48},[5221],{"type":14,"value":735},{"type":9,"tag":41,"props":5223,"children":5224},{"class":43,"line":3915},[5225,5229,5233],{"type":9,"tag":41,"props":5226,"children":5227},{"style":48},[5228],{"type":14,"value":629},{"type":9,"tag":41,"props":5230,"children":5231},{"style":54},[5232],{"type":14,"value":658},{"type":9,"tag":41,"props":5234,"children":5235},{"style":48},[5236],{"type":14,"value":84},{"type":9,"tag":753,"props":5238,"children":5239},{},[5240],{"type":14,"value":757},{"title":22,"searchDepth":87,"depth":87,"links":5242},[],{"code":5244,"filePath":5245,"pascalName":5246},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  attachments: afz.array(afz.file(), {\n    type: 'file',\n    controlProps: {\n      multiple: true,\n      layout: 'list'\n    }\n  })\n    .min(1, '至少上传一个文件')\n    .max(5, '最多上传 5 个文件')\n    .meta({\n      label: '多文件上传',\n      hint: '最多上传 5 个文件'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: `已上传 ${event.data.attachments.length} 个文件`\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Ffield-types\u002FAutoFormFieldFileMultipleExample.vue","AutoFormFieldFileMultipleExample",{"data":5248,"body":5249,"toc":5943},{"title":22,"description":22},{"type":6,"children":5250},[5251,5939],{"type":9,"tag":26,"props":5252,"children":5253},{},[5254],{"type":9,"tag":30,"props":5255,"children":5257},{"className":32,"code":5256,"language":34,"meta":22,"style":22},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  attachments: afz.array(afz.file(), {\n    type: 'file',\n    controlProps: {\n      multiple: true,\n      layout: 'list'\n    }\n  })\n    .min(1, '至少上传一个文件')\n    .max(5, '最多上传 5 个文件')\n    .meta({\n      label: '多文件上传',\n      hint: '最多上传 5 个文件'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: `已上传 ${event.data.attachments.length} 个文件`\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n\n",[5258],{"type":9,"tag":37,"props":5259,"children":5260},{"__ignoreMap":22},[5261,5292,5315,5338,5345,5376,5399,5406,5433,5461,5477,5484,5500,5513,5520,5527,5560,5594,5609,5625,5637,5644,5651,5658,5717,5732,5747,5762,5810,5817,5824,5839,5846,5861,5924],{"type":9,"tag":41,"props":5262,"children":5263},{"class":43,"line":44},[5264,5268,5272,5276,5280,5284,5288],{"type":9,"tag":41,"props":5265,"children":5266},{"style":48},[5267],{"type":14,"value":51},{"type":9,"tag":41,"props":5269,"children":5270},{"style":54},[5271],{"type":14,"value":57},{"type":9,"tag":41,"props":5273,"children":5274},{"style":60},[5275],{"type":14,"value":63},{"type":9,"tag":41,"props":5277,"children":5278},{"style":48},[5279],{"type":14,"value":68},{"type":9,"tag":41,"props":5281,"children":5282},{"style":71},[5283],{"type":14,"value":74},{"type":9,"tag":41,"props":5285,"children":5286},{"style":60},[5287],{"type":14,"value":79},{"type":9,"tag":41,"props":5289,"children":5290},{"style":48},[5291],{"type":14,"value":84},{"type":9,"tag":41,"props":5293,"children":5294},{"class":43,"line":87},[5295,5299,5303,5307,5311],{"type":9,"tag":41,"props":5296,"children":5297},{"style":91},[5298],{"type":14,"value":94},{"type":9,"tag":41,"props":5300,"children":5301},{"style":91},[5302],{"type":14,"value":99},{"type":9,"tag":41,"props":5304,"children":5305},{"style":48},[5306],{"type":14,"value":104},{"type":9,"tag":41,"props":5308,"children":5309},{"style":91},[5310],{"type":14,"value":109},{"type":9,"tag":41,"props":5312,"children":5313},{"style":71},[5314],{"type":14,"value":114},{"type":9,"tag":41,"props":5316,"children":5317},{"class":43,"line":117},[5318,5322,5326,5330,5334],{"type":9,"tag":41,"props":5319,"children":5320},{"style":91},[5321],{"type":14,"value":94},{"type":9,"tag":41,"props":5323,"children":5324},{"style":91},[5325],{"type":14,"value":99},{"type":9,"tag":41,"props":5327,"children":5328},{"style":48},[5329],{"type":14,"value":131},{"type":9,"tag":41,"props":5331,"children":5332},{"style":91},[5333],{"type":14,"value":109},{"type":9,"tag":41,"props":5335,"children":5336},{"style":71},[5337],{"type":14,"value":140},{"type":9,"tag":41,"props":5339,"children":5340},{"class":43,"line":143},[5341],{"type":9,"tag":41,"props":5342,"children":5343},{"emptyLinePlaceholder":147},[5344],{"type":14,"value":150},{"type":9,"tag":41,"props":5346,"children":5347},{"class":43,"line":153},[5348,5352,5356,5360,5364,5368,5372],{"type":9,"tag":41,"props":5349,"children":5350},{"style":91},[5351],{"type":14,"value":159},{"type":9,"tag":41,"props":5353,"children":5354},{"style":48},[5355],{"type":14,"value":164},{"type":9,"tag":41,"props":5357,"children":5358},{"style":167},[5359],{"type":14,"value":170},{"type":9,"tag":41,"props":5361,"children":5362},{"style":48},[5363],{"type":14,"value":175},{"type":9,"tag":41,"props":5365,"children":5366},{"style":91},[5367],{"type":14,"value":68},{"type":9,"tag":41,"props":5369,"children":5370},{"style":60},[5371],{"type":14,"value":184},{"type":9,"tag":41,"props":5373,"children":5374},{"style":48},[5375],{"type":14,"value":189},{"type":9,"tag":41,"props":5377,"children":5378},{"class":43,"line":192},[5379,5383,5387,5391,5395],{"type":9,"tag":41,"props":5380,"children":5381},{"style":91},[5382],{"type":14,"value":159},{"type":9,"tag":41,"props":5384,"children":5385},{"style":167},[5386],{"type":14,"value":202},{"type":9,"tag":41,"props":5388,"children":5389},{"style":91},[5390],{"type":14,"value":207},{"type":9,"tag":41,"props":5392,"children":5393},{"style":60},[5394],{"type":14,"value":212},{"type":9,"tag":41,"props":5396,"children":5397},{"style":48},[5398],{"type":14,"value":189},{"type":9,"tag":41,"props":5400,"children":5401},{"class":43,"line":219},[5402],{"type":9,"tag":41,"props":5403,"children":5404},{"emptyLinePlaceholder":147},[5405],{"type":14,"value":150},{"type":9,"tag":41,"props":5407,"children":5408},{"class":43,"line":227},[5409,5413,5417,5421,5425,5429],{"type":9,"tag":41,"props":5410,"children":5411},{"style":91},[5412],{"type":14,"value":159},{"type":9,"tag":41,"props":5414,"children":5415},{"style":167},[5416],{"type":14,"value":237},{"type":9,"tag":41,"props":5418,"children":5419},{"style":91},[5420],{"type":14,"value":207},{"type":9,"tag":41,"props":5422,"children":5423},{"style":48},[5424],{"type":14,"value":246},{"type":9,"tag":41,"props":5426,"children":5427},{"style":60},[5428],{"type":14,"value":251},{"type":9,"tag":41,"props":5430,"children":5431},{"style":48},[5432],{"type":14,"value":256},{"type":9,"tag":41,"props":5434,"children":5435},{"class":43,"line":259},[5436,5441,5446,5451,5456],{"type":9,"tag":41,"props":5437,"children":5438},{"style":48},[5439],{"type":14,"value":5440},"  attachments: afz.",{"type":9,"tag":41,"props":5442,"children":5443},{"style":60},[5444],{"type":14,"value":5445},"array",{"type":9,"tag":41,"props":5447,"children":5448},{"style":48},[5449],{"type":14,"value":5450},"(afz.",{"type":9,"tag":41,"props":5452,"children":5453},{"style":60},[5454],{"type":14,"value":5455},"file",{"type":9,"tag":41,"props":5457,"children":5458},{"style":48},[5459],{"type":14,"value":5460},"(), {\n",{"type":9,"tag":41,"props":5462,"children":5463},{"class":43,"line":277},[5464,5468,5473],{"type":9,"tag":41,"props":5465,"children":5466},{"style":48},[5467],{"type":14,"value":973},{"type":9,"tag":41,"props":5469,"children":5470},{"style":71},[5471],{"type":14,"value":5472},"'file'",{"type":9,"tag":41,"props":5474,"children":5475},{"style":48},[5476],{"type":14,"value":539},{"type":9,"tag":41,"props":5478,"children":5479},{"class":43,"line":286},[5480],{"type":9,"tag":41,"props":5481,"children":5482},{"style":48},[5483],{"type":14,"value":283},{"type":9,"tag":41,"props":5485,"children":5486},{"class":43,"line":300},[5487,5492,5496],{"type":9,"tag":41,"props":5488,"children":5489},{"style":48},[5490],{"type":14,"value":5491},"      multiple: ",{"type":9,"tag":41,"props":5493,"children":5494},{"style":167},[5495],{"type":14,"value":1006},{"type":9,"tag":41,"props":5497,"children":5498},{"style":48},[5499],{"type":14,"value":539},{"type":9,"tag":41,"props":5501,"children":5502},{"class":43,"line":309},[5503,5508],{"type":9,"tag":41,"props":5504,"children":5505},{"style":48},[5506],{"type":14,"value":5507},"      layout: ",{"type":9,"tag":41,"props":5509,"children":5510},{"style":71},[5511],{"type":14,"value":5512},"'list'\n",{"type":9,"tag":41,"props":5514,"children":5515},{"class":43,"line":318},[5516],{"type":9,"tag":41,"props":5517,"children":5518},{"style":48},[5519],{"type":14,"value":306},{"type":9,"tag":41,"props":5521,"children":5522},{"class":43,"line":378},[5523],{"type":9,"tag":41,"props":5524,"children":5525},{"style":48},[5526],{"type":14,"value":315},{"type":9,"tag":41,"props":5528,"children":5529},{"class":43,"line":395},[5530,5534,5539,5543,5547,5551,5556],{"type":9,"tag":41,"props":5531,"children":5532},{"style":48},[5533],{"type":14,"value":324},{"type":9,"tag":41,"props":5535,"children":5536},{"style":60},[5537],{"type":14,"value":5538},"min",{"type":9,"tag":41,"props":5540,"children":5541},{"style":48},[5542],{"type":14,"value":334},{"type":9,"tag":41,"props":5544,"children":5545},{"style":167},[5546],{"type":14,"value":2133},{"type":9,"tag":41,"props":5548,"children":5549},{"style":48},[5550],{"type":14,"value":365},{"type":9,"tag":41,"props":5552,"children":5553},{"style":71},[5554],{"type":14,"value":5555},"'至少上传一个文件'",{"type":9,"tag":41,"props":5557,"children":5558},{"style":48},[5559],{"type":14,"value":375},{"type":9,"tag":41,"props":5561,"children":5562},{"class":43,"line":408},[5563,5567,5572,5576,5581,5585,5590],{"type":9,"tag":41,"props":5564,"children":5565},{"style":48},[5566],{"type":14,"value":324},{"type":9,"tag":41,"props":5568,"children":5569},{"style":60},[5570],{"type":14,"value":5571},"max",{"type":9,"tag":41,"props":5573,"children":5574},{"style":48},[5575],{"type":14,"value":334},{"type":9,"tag":41,"props":5577,"children":5578},{"style":167},[5579],{"type":14,"value":5580},"5",{"type":9,"tag":41,"props":5582,"children":5583},{"style":48},[5584],{"type":14,"value":365},{"type":9,"tag":41,"props":5586,"children":5587},{"style":71},[5588],{"type":14,"value":5589},"'最多上传 5 个文件'",{"type":9,"tag":41,"props":5591,"children":5592},{"style":48},[5593],{"type":14,"value":375},{"type":9,"tag":41,"props":5595,"children":5596},{"class":43,"line":417},[5597,5601,5605],{"type":9,"tag":41,"props":5598,"children":5599},{"style":48},[5600],{"type":14,"value":324},{"type":9,"tag":41,"props":5602,"children":5603},{"style":60},[5604],{"type":14,"value":388},{"type":9,"tag":41,"props":5606,"children":5607},{"style":48},[5608],{"type":14,"value":256},{"type":9,"tag":41,"props":5610,"children":5611},{"class":43,"line":426},[5612,5616,5621],{"type":9,"tag":41,"props":5613,"children":5614},{"style":48},[5615],{"type":14,"value":292},{"type":9,"tag":41,"props":5617,"children":5618},{"style":71},[5619],{"type":14,"value":5620},"'多文件上传'",{"type":9,"tag":41,"props":5622,"children":5623},{"style":48},[5624],{"type":14,"value":539},{"type":9,"tag":41,"props":5626,"children":5627},{"class":43,"line":434},[5628,5632],{"type":9,"tag":41,"props":5629,"children":5630},{"style":48},[5631],{"type":14,"value":1049},{"type":9,"tag":41,"props":5633,"children":5634},{"style":71},[5635],{"type":14,"value":5636},"'最多上传 5 个文件'\n",{"type":9,"tag":41,"props":5638,"children":5639},{"class":43,"line":505},[5640],{"type":9,"tag":41,"props":5641,"children":5642},{"style":48},[5643],{"type":14,"value":414},{"type":9,"tag":41,"props":5645,"children":5646},{"class":43,"line":523},[5647],{"type":9,"tag":41,"props":5648,"children":5649},{"style":48},[5650],{"type":14,"value":423},{"type":9,"tag":41,"props":5652,"children":5653},{"class":43,"line":542},[5654],{"type":9,"tag":41,"props":5655,"children":5656},{"emptyLinePlaceholder":147},[5657],{"type":14,"value":150},{"type":9,"tag":41,"props":5659,"children":5660},{"class":43,"line":560},[5661,5665,5669,5673,5677,5681,5685,5689,5693,5697,5701,5705,5709,5713],{"type":9,"tag":41,"props":5662,"children":5663},{"style":91},[5664],{"type":14,"value":440},{"type":9,"tag":41,"props":5666,"children":5667},{"style":91},[5668],{"type":14,"value":445},{"type":9,"tag":41,"props":5670,"children":5671},{"style":60},[5672],{"type":14,"value":450},{"type":9,"tag":41,"props":5674,"children":5675},{"style":48},[5676],{"type":14,"value":334},{"type":9,"tag":41,"props":5678,"children":5679},{"style":337},[5680],{"type":14,"value":459},{"type":9,"tag":41,"props":5682,"children":5683},{"style":91},[5684],{"type":14,"value":464},{"type":9,"tag":41,"props":5686,"children":5687},{"style":60},[5688],{"type":14,"value":469},{"type":9,"tag":41,"props":5690,"children":5691},{"style":48},[5692],{"type":14,"value":51},{"type":9,"tag":41,"props":5694,"children":5695},{"style":60},[5696],{"type":14,"value":478},{"type":9,"tag":41,"props":5698,"children":5699},{"style":48},[5700],{"type":14,"value":483},{"type":9,"tag":41,"props":5702,"children":5703},{"style":60},[5704],{"type":14,"value":488},{"type":9,"tag":41,"props":5706,"children":5707},{"style":48},[5708],{"type":14,"value":51},{"type":9,"tag":41,"props":5710,"children":5711},{"style":91},[5712],{"type":14,"value":497},{"type":9,"tag":41,"props":5714,"children":5715},{"style":48},[5716],{"type":14,"value":502},{"type":9,"tag":41,"props":5718,"children":5719},{"class":43,"line":606},[5720,5724,5728],{"type":9,"tag":41,"props":5721,"children":5722},{"style":48},[5723],{"type":14,"value":511},{"type":9,"tag":41,"props":5725,"children":5726},{"style":60},[5727],{"type":14,"value":516},{"type":9,"tag":41,"props":5729,"children":5730},{"style":48},[5731],{"type":14,"value":256},{"type":9,"tag":41,"props":5733,"children":5734},{"class":43,"line":614},[5735,5739,5743],{"type":9,"tag":41,"props":5736,"children":5737},{"style":48},[5738],{"type":14,"value":529},{"type":9,"tag":41,"props":5740,"children":5741},{"style":71},[5742],{"type":14,"value":534},{"type":9,"tag":41,"props":5744,"children":5745},{"style":48},[5746],{"type":14,"value":539},{"type":9,"tag":41,"props":5748,"children":5749},{"class":43,"line":623},[5750,5754,5758],{"type":9,"tag":41,"props":5751,"children":5752},{"style":48},[5753],{"type":14,"value":548},{"type":9,"tag":41,"props":5755,"children":5756},{"style":71},[5757],{"type":14,"value":553},{"type":9,"tag":41,"props":5759,"children":5760},{"style":48},[5761],{"type":14,"value":539},{"type":9,"tag":41,"props":5763,"children":5764},{"class":43,"line":640},[5765,5769,5774,5778,5782,5787,5791,5796,5800,5805],{"type":9,"tag":41,"props":5766,"children":5767},{"style":48},[5768],{"type":14,"value":566},{"type":9,"tag":41,"props":5770,"children":5771},{"style":71},[5772],{"type":14,"value":5773},"`已上传 ${",{"type":9,"tag":41,"props":5775,"children":5776},{"style":48},[5777],{"type":14,"value":459},{"type":9,"tag":41,"props":5779,"children":5780},{"style":71},[5781],{"type":14,"value":483},{"type":9,"tag":41,"props":5783,"children":5784},{"style":48},[5785],{"type":14,"value":5786},"data",{"type":9,"tag":41,"props":5788,"children":5789},{"style":71},[5790],{"type":14,"value":483},{"type":9,"tag":41,"props":5792,"children":5793},{"style":48},[5794],{"type":14,"value":5795},"attachments",{"type":9,"tag":41,"props":5797,"children":5798},{"style":71},[5799],{"type":14,"value":483},{"type":9,"tag":41,"props":5801,"children":5802},{"style":167},[5803],{"type":14,"value":5804},"length",{"type":9,"tag":41,"props":5806,"children":5807},{"style":71},[5808],{"type":14,"value":5809},"} 个文件`\n",{"type":9,"tag":41,"props":5811,"children":5812},{"class":43,"line":648},[5813],{"type":9,"tag":41,"props":5814,"children":5815},{"style":48},[5816],{"type":14,"value":315},{"type":9,"tag":41,"props":5818,"children":5819},{"class":43,"line":665},[5820],{"type":9,"tag":41,"props":5821,"children":5822},{"style":48},[5823],{"type":14,"value":620},{"type":9,"tag":41,"props":5825,"children":5826},{"class":43,"line":738},[5827,5831,5835],{"type":9,"tag":41,"props":5828,"children":5829},{"style":48},[5830],{"type":14,"value":629},{"type":9,"tag":41,"props":5832,"children":5833},{"style":54},[5834],{"type":14,"value":57},{"type":9,"tag":41,"props":5836,"children":5837},{"style":48},[5838],{"type":14,"value":84},{"type":9,"tag":41,"props":5840,"children":5841},{"class":43,"line":3093},[5842],{"type":9,"tag":41,"props":5843,"children":5844},{"emptyLinePlaceholder":147},[5845],{"type":14,"value":150},{"type":9,"tag":41,"props":5847,"children":5848},{"class":43,"line":3101},[5849,5853,5857],{"type":9,"tag":41,"props":5850,"children":5851},{"style":48},[5852],{"type":14,"value":51},{"type":9,"tag":41,"props":5854,"children":5855},{"style":54},[5856],{"type":14,"value":658},{"type":9,"tag":41,"props":5858,"children":5859},{"style":48},[5860],{"type":14,"value":84},{"type":9,"tag":41,"props":5862,"children":5863},{"class":43,"line":3117},[5864,5868,5872,5876,5880,5884,5888,5892,5896,5900,5904,5908,5912,5916,5920],{"type":9,"tag":41,"props":5865,"children":5866},{"style":48},[5867],{"type":14,"value":671},{"type":9,"tag":41,"props":5869,"children":5870},{"style":54},[5871],{"type":14,"value":676},{"type":9,"tag":41,"props":5873,"children":5874},{"style":48},[5875],{"type":14,"value":681},{"type":9,"tag":41,"props":5877,"children":5878},{"style":60},[5879],{"type":14,"value":686},{"type":9,"tag":41,"props":5881,"children":5882},{"style":48},[5883],{"type":14,"value":68},{"type":9,"tag":41,"props":5885,"children":5886},{"style":71},[5887],{"type":14,"value":695},{"type":9,"tag":41,"props":5889,"children":5890},{"style":48},[5891],{"type":14,"value":686},{"type":9,"tag":41,"props":5893,"children":5894},{"style":71},[5895],{"type":14,"value":695},{"type":9,"tag":41,"props":5897,"children":5898},{"style":48},[5899],{"type":14,"value":708},{"type":9,"tag":41,"props":5901,"children":5902},{"style":60},[5903],{"type":14,"value":713},{"type":9,"tag":41,"props":5905,"children":5906},{"style":48},[5907],{"type":14,"value":68},{"type":9,"tag":41,"props":5909,"children":5910},{"style":71},[5911],{"type":14,"value":695},{"type":9,"tag":41,"props":5913,"children":5914},{"style":48},[5915],{"type":14,"value":726},{"type":9,"tag":41,"props":5917,"children":5918},{"style":71},[5919],{"type":14,"value":695},{"type":9,"tag":41,"props":5921,"children":5922},{"style":48},[5923],{"type":14,"value":735},{"type":9,"tag":41,"props":5925,"children":5926},{"class":43,"line":3181},[5927,5931,5935],{"type":9,"tag":41,"props":5928,"children":5929},{"style":48},[5930],{"type":14,"value":629},{"type":9,"tag":41,"props":5932,"children":5933},{"style":54},[5934],{"type":14,"value":658},{"type":9,"tag":41,"props":5936,"children":5937},{"style":48},[5938],{"type":14,"value":84},{"type":9,"tag":753,"props":5940,"children":5941},{},[5942],{"type":14,"value":757},{"title":22,"searchDepth":87,"depth":87,"links":5944},[],{"code":5946,"filePath":5947,"pascalName":5948},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  avatar: afz.file({\n    controlProps: {\n      accept: 'image\u002F*'\n    }\n  })\n    .meta({\n      label: '单文件上传',\n      hint: '仅支持图片格式'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: `文件名: ${event.data.avatar.name}`\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Ffield-types\u002FAutoFormFieldFileSingleExample.vue","AutoFormFieldFileSingleExample",{"data":5950,"body":5951,"toc":6533},{"title":22,"description":22},{"type":6,"children":5952},[5953,6529],{"type":9,"tag":26,"props":5954,"children":5955},{},[5956],{"type":9,"tag":30,"props":5957,"children":5959},{"className":32,"code":5958,"language":34,"meta":22,"style":22},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  avatar: afz.file({\n    controlProps: {\n      accept: 'image\u002F*'\n    }\n  })\n    .meta({\n      label: '单文件上传',\n      hint: '仅支持图片格式'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: `文件名: ${event.data.avatar.name}`\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n\n",[5960],{"type":9,"tag":37,"props":5961,"children":5962},{"__ignoreMap":22},[5963,5994,6017,6040,6047,6078,6101,6108,6135,6151,6158,6171,6178,6185,6200,6216,6228,6235,6242,6249,6308,6323,6338,6353,6400,6407,6414,6429,6436,6451,6514],{"type":9,"tag":41,"props":5964,"children":5965},{"class":43,"line":44},[5966,5970,5974,5978,5982,5986,5990],{"type":9,"tag":41,"props":5967,"children":5968},{"style":48},[5969],{"type":14,"value":51},{"type":9,"tag":41,"props":5971,"children":5972},{"style":54},[5973],{"type":14,"value":57},{"type":9,"tag":41,"props":5975,"children":5976},{"style":60},[5977],{"type":14,"value":63},{"type":9,"tag":41,"props":5979,"children":5980},{"style":48},[5981],{"type":14,"value":68},{"type":9,"tag":41,"props":5983,"children":5984},{"style":71},[5985],{"type":14,"value":74},{"type":9,"tag":41,"props":5987,"children":5988},{"style":60},[5989],{"type":14,"value":79},{"type":9,"tag":41,"props":5991,"children":5992},{"style":48},[5993],{"type":14,"value":84},{"type":9,"tag":41,"props":5995,"children":5996},{"class":43,"line":87},[5997,6001,6005,6009,6013],{"type":9,"tag":41,"props":5998,"children":5999},{"style":91},[6000],{"type":14,"value":94},{"type":9,"tag":41,"props":6002,"children":6003},{"style":91},[6004],{"type":14,"value":99},{"type":9,"tag":41,"props":6006,"children":6007},{"style":48},[6008],{"type":14,"value":104},{"type":9,"tag":41,"props":6010,"children":6011},{"style":91},[6012],{"type":14,"value":109},{"type":9,"tag":41,"props":6014,"children":6015},{"style":71},[6016],{"type":14,"value":114},{"type":9,"tag":41,"props":6018,"children":6019},{"class":43,"line":117},[6020,6024,6028,6032,6036],{"type":9,"tag":41,"props":6021,"children":6022},{"style":91},[6023],{"type":14,"value":94},{"type":9,"tag":41,"props":6025,"children":6026},{"style":91},[6027],{"type":14,"value":99},{"type":9,"tag":41,"props":6029,"children":6030},{"style":48},[6031],{"type":14,"value":131},{"type":9,"tag":41,"props":6033,"children":6034},{"style":91},[6035],{"type":14,"value":109},{"type":9,"tag":41,"props":6037,"children":6038},{"style":71},[6039],{"type":14,"value":140},{"type":9,"tag":41,"props":6041,"children":6042},{"class":43,"line":143},[6043],{"type":9,"tag":41,"props":6044,"children":6045},{"emptyLinePlaceholder":147},[6046],{"type":14,"value":150},{"type":9,"tag":41,"props":6048,"children":6049},{"class":43,"line":153},[6050,6054,6058,6062,6066,6070,6074],{"type":9,"tag":41,"props":6051,"children":6052},{"style":91},[6053],{"type":14,"value":159},{"type":9,"tag":41,"props":6055,"children":6056},{"style":48},[6057],{"type":14,"value":164},{"type":9,"tag":41,"props":6059,"children":6060},{"style":167},[6061],{"type":14,"value":170},{"type":9,"tag":41,"props":6063,"children":6064},{"style":48},[6065],{"type":14,"value":175},{"type":9,"tag":41,"props":6067,"children":6068},{"style":91},[6069],{"type":14,"value":68},{"type":9,"tag":41,"props":6071,"children":6072},{"style":60},[6073],{"type":14,"value":184},{"type":9,"tag":41,"props":6075,"children":6076},{"style":48},[6077],{"type":14,"value":189},{"type":9,"tag":41,"props":6079,"children":6080},{"class":43,"line":192},[6081,6085,6089,6093,6097],{"type":9,"tag":41,"props":6082,"children":6083},{"style":91},[6084],{"type":14,"value":159},{"type":9,"tag":41,"props":6086,"children":6087},{"style":167},[6088],{"type":14,"value":202},{"type":9,"tag":41,"props":6090,"children":6091},{"style":91},[6092],{"type":14,"value":207},{"type":9,"tag":41,"props":6094,"children":6095},{"style":60},[6096],{"type":14,"value":212},{"type":9,"tag":41,"props":6098,"children":6099},{"style":48},[6100],{"type":14,"value":189},{"type":9,"tag":41,"props":6102,"children":6103},{"class":43,"line":219},[6104],{"type":9,"tag":41,"props":6105,"children":6106},{"emptyLinePlaceholder":147},[6107],{"type":14,"value":150},{"type":9,"tag":41,"props":6109,"children":6110},{"class":43,"line":227},[6111,6115,6119,6123,6127,6131],{"type":9,"tag":41,"props":6112,"children":6113},{"style":91},[6114],{"type":14,"value":159},{"type":9,"tag":41,"props":6116,"children":6117},{"style":167},[6118],{"type":14,"value":237},{"type":9,"tag":41,"props":6120,"children":6121},{"style":91},[6122],{"type":14,"value":207},{"type":9,"tag":41,"props":6124,"children":6125},{"style":48},[6126],{"type":14,"value":246},{"type":9,"tag":41,"props":6128,"children":6129},{"style":60},[6130],{"type":14,"value":251},{"type":9,"tag":41,"props":6132,"children":6133},{"style":48},[6134],{"type":14,"value":256},{"type":9,"tag":41,"props":6136,"children":6137},{"class":43,"line":259},[6138,6143,6147],{"type":9,"tag":41,"props":6139,"children":6140},{"style":48},[6141],{"type":14,"value":6142},"  avatar: afz.",{"type":9,"tag":41,"props":6144,"children":6145},{"style":60},[6146],{"type":14,"value":5455},{"type":9,"tag":41,"props":6148,"children":6149},{"style":48},[6150],{"type":14,"value":256},{"type":9,"tag":41,"props":6152,"children":6153},{"class":43,"line":277},[6154],{"type":9,"tag":41,"props":6155,"children":6156},{"style":48},[6157],{"type":14,"value":283},{"type":9,"tag":41,"props":6159,"children":6160},{"class":43,"line":286},[6161,6166],{"type":9,"tag":41,"props":6162,"children":6163},{"style":48},[6164],{"type":14,"value":6165},"      accept: ",{"type":9,"tag":41,"props":6167,"children":6168},{"style":71},[6169],{"type":14,"value":6170},"'image\u002F*'\n",{"type":9,"tag":41,"props":6172,"children":6173},{"class":43,"line":300},[6174],{"type":9,"tag":41,"props":6175,"children":6176},{"style":48},[6177],{"type":14,"value":306},{"type":9,"tag":41,"props":6179,"children":6180},{"class":43,"line":309},[6181],{"type":9,"tag":41,"props":6182,"children":6183},{"style":48},[6184],{"type":14,"value":315},{"type":9,"tag":41,"props":6186,"children":6187},{"class":43,"line":318},[6188,6192,6196],{"type":9,"tag":41,"props":6189,"children":6190},{"style":48},[6191],{"type":14,"value":324},{"type":9,"tag":41,"props":6193,"children":6194},{"style":60},[6195],{"type":14,"value":388},{"type":9,"tag":41,"props":6197,"children":6198},{"style":48},[6199],{"type":14,"value":256},{"type":9,"tag":41,"props":6201,"children":6202},{"class":43,"line":378},[6203,6207,6212],{"type":9,"tag":41,"props":6204,"children":6205},{"style":48},[6206],{"type":14,"value":292},{"type":9,"tag":41,"props":6208,"children":6209},{"style":71},[6210],{"type":14,"value":6211},"'单文件上传'",{"type":9,"tag":41,"props":6213,"children":6214},{"style":48},[6215],{"type":14,"value":539},{"type":9,"tag":41,"props":6217,"children":6218},{"class":43,"line":395},[6219,6223],{"type":9,"tag":41,"props":6220,"children":6221},{"style":48},[6222],{"type":14,"value":1049},{"type":9,"tag":41,"props":6224,"children":6225},{"style":71},[6226],{"type":14,"value":6227},"'仅支持图片格式'\n",{"type":9,"tag":41,"props":6229,"children":6230},{"class":43,"line":408},[6231],{"type":9,"tag":41,"props":6232,"children":6233},{"style":48},[6234],{"type":14,"value":414},{"type":9,"tag":41,"props":6236,"children":6237},{"class":43,"line":417},[6238],{"type":9,"tag":41,"props":6239,"children":6240},{"style":48},[6241],{"type":14,"value":423},{"type":9,"tag":41,"props":6243,"children":6244},{"class":43,"line":426},[6245],{"type":9,"tag":41,"props":6246,"children":6247},{"emptyLinePlaceholder":147},[6248],{"type":14,"value":150},{"type":9,"tag":41,"props":6250,"children":6251},{"class":43,"line":434},[6252,6256,6260,6264,6268,6272,6276,6280,6284,6288,6292,6296,6300,6304],{"type":9,"tag":41,"props":6253,"children":6254},{"style":91},[6255],{"type":14,"value":440},{"type":9,"tag":41,"props":6257,"children":6258},{"style":91},[6259],{"type":14,"value":445},{"type":9,"tag":41,"props":6261,"children":6262},{"style":60},[6263],{"type":14,"value":450},{"type":9,"tag":41,"props":6265,"children":6266},{"style":48},[6267],{"type":14,"value":334},{"type":9,"tag":41,"props":6269,"children":6270},{"style":337},[6271],{"type":14,"value":459},{"type":9,"tag":41,"props":6273,"children":6274},{"style":91},[6275],{"type":14,"value":464},{"type":9,"tag":41,"props":6277,"children":6278},{"style":60},[6279],{"type":14,"value":469},{"type":9,"tag":41,"props":6281,"children":6282},{"style":48},[6283],{"type":14,"value":51},{"type":9,"tag":41,"props":6285,"children":6286},{"style":60},[6287],{"type":14,"value":478},{"type":9,"tag":41,"props":6289,"children":6290},{"style":48},[6291],{"type":14,"value":483},{"type":9,"tag":41,"props":6293,"children":6294},{"style":60},[6295],{"type":14,"value":488},{"type":9,"tag":41,"props":6297,"children":6298},{"style":48},[6299],{"type":14,"value":51},{"type":9,"tag":41,"props":6301,"children":6302},{"style":91},[6303],{"type":14,"value":497},{"type":9,"tag":41,"props":6305,"children":6306},{"style":48},[6307],{"type":14,"value":502},{"type":9,"tag":41,"props":6309,"children":6310},{"class":43,"line":505},[6311,6315,6319],{"type":9,"tag":41,"props":6312,"children":6313},{"style":48},[6314],{"type":14,"value":511},{"type":9,"tag":41,"props":6316,"children":6317},{"style":60},[6318],{"type":14,"value":516},{"type":9,"tag":41,"props":6320,"children":6321},{"style":48},[6322],{"type":14,"value":256},{"type":9,"tag":41,"props":6324,"children":6325},{"class":43,"line":523},[6326,6330,6334],{"type":9,"tag":41,"props":6327,"children":6328},{"style":48},[6329],{"type":14,"value":529},{"type":9,"tag":41,"props":6331,"children":6332},{"style":71},[6333],{"type":14,"value":534},{"type":9,"tag":41,"props":6335,"children":6336},{"style":48},[6337],{"type":14,"value":539},{"type":9,"tag":41,"props":6339,"children":6340},{"class":43,"line":542},[6341,6345,6349],{"type":9,"tag":41,"props":6342,"children":6343},{"style":48},[6344],{"type":14,"value":548},{"type":9,"tag":41,"props":6346,"children":6347},{"style":71},[6348],{"type":14,"value":553},{"type":9,"tag":41,"props":6350,"children":6351},{"style":48},[6352],{"type":14,"value":539},{"type":9,"tag":41,"props":6354,"children":6355},{"class":43,"line":560},[6356,6360,6365,6369,6373,6377,6381,6386,6390,6395],{"type":9,"tag":41,"props":6357,"children":6358},{"style":48},[6359],{"type":14,"value":566},{"type":9,"tag":41,"props":6361,"children":6362},{"style":71},[6363],{"type":14,"value":6364},"`文件名: ${",{"type":9,"tag":41,"props":6366,"children":6367},{"style":48},[6368],{"type":14,"value":459},{"type":9,"tag":41,"props":6370,"children":6371},{"style":71},[6372],{"type":14,"value":483},{"type":9,"tag":41,"props":6374,"children":6375},{"style":48},[6376],{"type":14,"value":5786},{"type":9,"tag":41,"props":6378,"children":6379},{"style":71},[6380],{"type":14,"value":483},{"type":9,"tag":41,"props":6382,"children":6383},{"style":48},[6384],{"type":14,"value":6385},"avatar",{"type":9,"tag":41,"props":6387,"children":6388},{"style":71},[6389],{"type":14,"value":483},{"type":9,"tag":41,"props":6391,"children":6392},{"style":48},[6393],{"type":14,"value":6394},"name",{"type":9,"tag":41,"props":6396,"children":6397},{"style":71},[6398],{"type":14,"value":6399},"}`\n",{"type":9,"tag":41,"props":6401,"children":6402},{"class":43,"line":606},[6403],{"type":9,"tag":41,"props":6404,"children":6405},{"style":48},[6406],{"type":14,"value":315},{"type":9,"tag":41,"props":6408,"children":6409},{"class":43,"line":614},[6410],{"type":9,"tag":41,"props":6411,"children":6412},{"style":48},[6413],{"type":14,"value":620},{"type":9,"tag":41,"props":6415,"children":6416},{"class":43,"line":623},[6417,6421,6425],{"type":9,"tag":41,"props":6418,"children":6419},{"style":48},[6420],{"type":14,"value":629},{"type":9,"tag":41,"props":6422,"children":6423},{"style":54},[6424],{"type":14,"value":57},{"type":9,"tag":41,"props":6426,"children":6427},{"style":48},[6428],{"type":14,"value":84},{"type":9,"tag":41,"props":6430,"children":6431},{"class":43,"line":640},[6432],{"type":9,"tag":41,"props":6433,"children":6434},{"emptyLinePlaceholder":147},[6435],{"type":14,"value":150},{"type":9,"tag":41,"props":6437,"children":6438},{"class":43,"line":648},[6439,6443,6447],{"type":9,"tag":41,"props":6440,"children":6441},{"style":48},[6442],{"type":14,"value":51},{"type":9,"tag":41,"props":6444,"children":6445},{"style":54},[6446],{"type":14,"value":658},{"type":9,"tag":41,"props":6448,"children":6449},{"style":48},[6450],{"type":14,"value":84},{"type":9,"tag":41,"props":6452,"children":6453},{"class":43,"line":665},[6454,6458,6462,6466,6470,6474,6478,6482,6486,6490,6494,6498,6502,6506,6510],{"type":9,"tag":41,"props":6455,"children":6456},{"style":48},[6457],{"type":14,"value":671},{"type":9,"tag":41,"props":6459,"children":6460},{"style":54},[6461],{"type":14,"value":676},{"type":9,"tag":41,"props":6463,"children":6464},{"style":48},[6465],{"type":14,"value":681},{"type":9,"tag":41,"props":6467,"children":6468},{"style":60},[6469],{"type":14,"value":686},{"type":9,"tag":41,"props":6471,"children":6472},{"style":48},[6473],{"type":14,"value":68},{"type":9,"tag":41,"props":6475,"children":6476},{"style":71},[6477],{"type":14,"value":695},{"type":9,"tag":41,"props":6479,"children":6480},{"style":48},[6481],{"type":14,"value":686},{"type":9,"tag":41,"props":6483,"children":6484},{"style":71},[6485],{"type":14,"value":695},{"type":9,"tag":41,"props":6487,"children":6488},{"style":48},[6489],{"type":14,"value":708},{"type":9,"tag":41,"props":6491,"children":6492},{"style":60},[6493],{"type":14,"value":713},{"type":9,"tag":41,"props":6495,"children":6496},{"style":48},[6497],{"type":14,"value":68},{"type":9,"tag":41,"props":6499,"children":6500},{"style":71},[6501],{"type":14,"value":695},{"type":9,"tag":41,"props":6503,"children":6504},{"style":48},[6505],{"type":14,"value":726},{"type":9,"tag":41,"props":6507,"children":6508},{"style":71},[6509],{"type":14,"value":695},{"type":9,"tag":41,"props":6511,"children":6512},{"style":48},[6513],{"type":14,"value":735},{"type":9,"tag":41,"props":6515,"children":6516},{"class":43,"line":738},[6517,6521,6525],{"type":9,"tag":41,"props":6518,"children":6519},{"style":48},[6520],{"type":14,"value":629},{"type":9,"tag":41,"props":6522,"children":6523},{"style":54},[6524],{"type":14,"value":658},{"type":9,"tag":41,"props":6526,"children":6527},{"style":48},[6528],{"type":14,"value":84},{"type":9,"tag":753,"props":6530,"children":6531},{},[6532],{"type":14,"value":757},{"title":22,"searchDepth":87,"depth":87,"links":6534},[],{"code":6536,"filePath":6537,"pascalName":6538},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\nconst formatter = useDateFormatter()\n\nconst schema = afz.object({\n  birthDate: afz.inputDate()\n    .transform(date => formatter.convertToISO(date))\n    .meta({\n      label: '出生日期',\n      description: '使用日期输入框选择您的出生日期'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Ffield-types\u002FAutoFormFieldInputDateExample.vue","AutoFormFieldInputDateExample",{"data":6540,"body":6541,"toc":7142},{"title":22,"description":22},{"type":6,"children":6542},[6543,7138],{"type":9,"tag":26,"props":6544,"children":6545},{},[6546],{"type":9,"tag":30,"props":6547,"children":6549},{"className":32,"code":6548,"language":34,"meta":22,"style":22},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\nconst formatter = useDateFormatter()\n\nconst schema = afz.object({\n  birthDate: afz.inputDate()\n    .transform(date => formatter.convertToISO(date))\n    .meta({\n      label: '出生日期',\n      description: '使用日期输入框选择您的出生日期'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n\n",[6550],{"type":9,"tag":37,"props":6551,"children":6552},{"__ignoreMap":22},[6553,6584,6607,6630,6637,6668,6691,6714,6721,6748,6765,6801,6816,6832,6845,6852,6859,6866,6925,6940,6955,6970,7009,7016,7023,7038,7045,7060,7123],{"type":9,"tag":41,"props":6554,"children":6555},{"class":43,"line":44},[6556,6560,6564,6568,6572,6576,6580],{"type":9,"tag":41,"props":6557,"children":6558},{"style":48},[6559],{"type":14,"value":51},{"type":9,"tag":41,"props":6561,"children":6562},{"style":54},[6563],{"type":14,"value":57},{"type":9,"tag":41,"props":6565,"children":6566},{"style":60},[6567],{"type":14,"value":63},{"type":9,"tag":41,"props":6569,"children":6570},{"style":48},[6571],{"type":14,"value":68},{"type":9,"tag":41,"props":6573,"children":6574},{"style":71},[6575],{"type":14,"value":74},{"type":9,"tag":41,"props":6577,"children":6578},{"style":60},[6579],{"type":14,"value":79},{"type":9,"tag":41,"props":6581,"children":6582},{"style":48},[6583],{"type":14,"value":84},{"type":9,"tag":41,"props":6585,"children":6586},{"class":43,"line":87},[6587,6591,6595,6599,6603],{"type":9,"tag":41,"props":6588,"children":6589},{"style":91},[6590],{"type":14,"value":94},{"type":9,"tag":41,"props":6592,"children":6593},{"style":91},[6594],{"type":14,"value":99},{"type":9,"tag":41,"props":6596,"children":6597},{"style":48},[6598],{"type":14,"value":104},{"type":9,"tag":41,"props":6600,"children":6601},{"style":91},[6602],{"type":14,"value":109},{"type":9,"tag":41,"props":6604,"children":6605},{"style":71},[6606],{"type":14,"value":114},{"type":9,"tag":41,"props":6608,"children":6609},{"class":43,"line":117},[6610,6614,6618,6622,6626],{"type":9,"tag":41,"props":6611,"children":6612},{"style":91},[6613],{"type":14,"value":94},{"type":9,"tag":41,"props":6615,"children":6616},{"style":91},[6617],{"type":14,"value":99},{"type":9,"tag":41,"props":6619,"children":6620},{"style":48},[6621],{"type":14,"value":131},{"type":9,"tag":41,"props":6623,"children":6624},{"style":91},[6625],{"type":14,"value":109},{"type":9,"tag":41,"props":6627,"children":6628},{"style":71},[6629],{"type":14,"value":140},{"type":9,"tag":41,"props":6631,"children":6632},{"class":43,"line":143},[6633],{"type":9,"tag":41,"props":6634,"children":6635},{"emptyLinePlaceholder":147},[6636],{"type":14,"value":150},{"type":9,"tag":41,"props":6638,"children":6639},{"class":43,"line":153},[6640,6644,6648,6652,6656,6660,6664],{"type":9,"tag":41,"props":6641,"children":6642},{"style":91},[6643],{"type":14,"value":159},{"type":9,"tag":41,"props":6645,"children":6646},{"style":48},[6647],{"type":14,"value":164},{"type":9,"tag":41,"props":6649,"children":6650},{"style":167},[6651],{"type":14,"value":170},{"type":9,"tag":41,"props":6653,"children":6654},{"style":48},[6655],{"type":14,"value":175},{"type":9,"tag":41,"props":6657,"children":6658},{"style":91},[6659],{"type":14,"value":68},{"type":9,"tag":41,"props":6661,"children":6662},{"style":60},[6663],{"type":14,"value":184},{"type":9,"tag":41,"props":6665,"children":6666},{"style":48},[6667],{"type":14,"value":189},{"type":9,"tag":41,"props":6669,"children":6670},{"class":43,"line":192},[6671,6675,6679,6683,6687],{"type":9,"tag":41,"props":6672,"children":6673},{"style":91},[6674],{"type":14,"value":159},{"type":9,"tag":41,"props":6676,"children":6677},{"style":167},[6678],{"type":14,"value":202},{"type":9,"tag":41,"props":6680,"children":6681},{"style":91},[6682],{"type":14,"value":207},{"type":9,"tag":41,"props":6684,"children":6685},{"style":60},[6686],{"type":14,"value":212},{"type":9,"tag":41,"props":6688,"children":6689},{"style":48},[6690],{"type":14,"value":189},{"type":9,"tag":41,"props":6692,"children":6693},{"class":43,"line":219},[6694,6698,6702,6706,6710],{"type":9,"tag":41,"props":6695,"children":6696},{"style":91},[6697],{"type":14,"value":159},{"type":9,"tag":41,"props":6699,"children":6700},{"style":167},[6701],{"type":14,"value":1992},{"type":9,"tag":41,"props":6703,"children":6704},{"style":91},[6705],{"type":14,"value":207},{"type":9,"tag":41,"props":6707,"children":6708},{"style":60},[6709],{"type":14,"value":2001},{"type":9,"tag":41,"props":6711,"children":6712},{"style":48},[6713],{"type":14,"value":189},{"type":9,"tag":41,"props":6715,"children":6716},{"class":43,"line":227},[6717],{"type":9,"tag":41,"props":6718,"children":6719},{"emptyLinePlaceholder":147},[6720],{"type":14,"value":150},{"type":9,"tag":41,"props":6722,"children":6723},{"class":43,"line":259},[6724,6728,6732,6736,6740,6744],{"type":9,"tag":41,"props":6725,"children":6726},{"style":91},[6727],{"type":14,"value":159},{"type":9,"tag":41,"props":6729,"children":6730},{"style":167},[6731],{"type":14,"value":237},{"type":9,"tag":41,"props":6733,"children":6734},{"style":91},[6735],{"type":14,"value":207},{"type":9,"tag":41,"props":6737,"children":6738},{"style":48},[6739],{"type":14,"value":246},{"type":9,"tag":41,"props":6741,"children":6742},{"style":60},[6743],{"type":14,"value":251},{"type":9,"tag":41,"props":6745,"children":6746},{"style":48},[6747],{"type":14,"value":256},{"type":9,"tag":41,"props":6749,"children":6750},{"class":43,"line":277},[6751,6756,6761],{"type":9,"tag":41,"props":6752,"children":6753},{"style":48},[6754],{"type":14,"value":6755},"  birthDate: afz.",{"type":9,"tag":41,"props":6757,"children":6758},{"style":60},[6759],{"type":14,"value":6760},"inputDate",{"type":9,"tag":41,"props":6762,"children":6763},{"style":48},[6764],{"type":14,"value":189},{"type":9,"tag":41,"props":6766,"children":6767},{"class":43,"line":286},[6768,6772,6776,6780,6784,6788,6792,6797],{"type":9,"tag":41,"props":6769,"children":6770},{"style":48},[6771],{"type":14,"value":324},{"type":9,"tag":41,"props":6773,"children":6774},{"style":60},[6775],{"type":14,"value":2183},{"type":9,"tag":41,"props":6777,"children":6778},{"style":48},[6779],{"type":14,"value":334},{"type":9,"tag":41,"props":6781,"children":6782},{"style":337},[6783],{"type":14,"value":2192},{"type":9,"tag":41,"props":6785,"children":6786},{"style":91},[6787],{"type":14,"value":345},{"type":9,"tag":41,"props":6789,"children":6790},{"style":48},[6791],{"type":14,"value":2201},{"type":9,"tag":41,"props":6793,"children":6794},{"style":60},[6795],{"type":14,"value":6796},"convertToISO",{"type":9,"tag":41,"props":6798,"children":6799},{"style":48},[6800],{"type":14,"value":2211},{"type":9,"tag":41,"props":6802,"children":6803},{"class":43,"line":300},[6804,6808,6812],{"type":9,"tag":41,"props":6805,"children":6806},{"style":48},[6807],{"type":14,"value":324},{"type":9,"tag":41,"props":6809,"children":6810},{"style":60},[6811],{"type":14,"value":388},{"type":9,"tag":41,"props":6813,"children":6814},{"style":48},[6815],{"type":14,"value":256},{"type":9,"tag":41,"props":6817,"children":6818},{"class":43,"line":309},[6819,6823,6828],{"type":9,"tag":41,"props":6820,"children":6821},{"style":48},[6822],{"type":14,"value":292},{"type":9,"tag":41,"props":6824,"children":6825},{"style":71},[6826],{"type":14,"value":6827},"'出生日期'",{"type":9,"tag":41,"props":6829,"children":6830},{"style":48},[6831],{"type":14,"value":539},{"type":9,"tag":41,"props":6833,"children":6834},{"class":43,"line":318},[6835,6840],{"type":9,"tag":41,"props":6836,"children":6837},{"style":48},[6838],{"type":14,"value":6839},"      description: ",{"type":9,"tag":41,"props":6841,"children":6842},{"style":71},[6843],{"type":14,"value":6844},"'使用日期输入框选择您的出生日期'\n",{"type":9,"tag":41,"props":6846,"children":6847},{"class":43,"line":378},[6848],{"type":9,"tag":41,"props":6849,"children":6850},{"style":48},[6851],{"type":14,"value":414},{"type":9,"tag":41,"props":6853,"children":6854},{"class":43,"line":395},[6855],{"type":9,"tag":41,"props":6856,"children":6857},{"style":48},[6858],{"type":14,"value":423},{"type":9,"tag":41,"props":6860,"children":6861},{"class":43,"line":408},[6862],{"type":9,"tag":41,"props":6863,"children":6864},{"emptyLinePlaceholder":147},[6865],{"type":14,"value":150},{"type":9,"tag":41,"props":6867,"children":6868},{"class":43,"line":417},[6869,6873,6877,6881,6885,6889,6893,6897,6901,6905,6909,6913,6917,6921],{"type":9,"tag":41,"props":6870,"children":6871},{"style":91},[6872],{"type":14,"value":440},{"type":9,"tag":41,"props":6874,"children":6875},{"style":91},[6876],{"type":14,"value":445},{"type":9,"tag":41,"props":6878,"children":6879},{"style":60},[6880],{"type":14,"value":450},{"type":9,"tag":41,"props":6882,"children":6883},{"style":48},[6884],{"type":14,"value":334},{"type":9,"tag":41,"props":6886,"children":6887},{"style":337},[6888],{"type":14,"value":459},{"type":9,"tag":41,"props":6890,"children":6891},{"style":91},[6892],{"type":14,"value":464},{"type":9,"tag":41,"props":6894,"children":6895},{"style":60},[6896],{"type":14,"value":469},{"type":9,"tag":41,"props":6898,"children":6899},{"style":48},[6900],{"type":14,"value":51},{"type":9,"tag":41,"props":6902,"children":6903},{"style":60},[6904],{"type":14,"value":478},{"type":9,"tag":41,"props":6906,"children":6907},{"style":48},[6908],{"type":14,"value":483},{"type":9,"tag":41,"props":6910,"children":6911},{"style":60},[6912],{"type":14,"value":488},{"type":9,"tag":41,"props":6914,"children":6915},{"style":48},[6916],{"type":14,"value":51},{"type":9,"tag":41,"props":6918,"children":6919},{"style":91},[6920],{"type":14,"value":497},{"type":9,"tag":41,"props":6922,"children":6923},{"style":48},[6924],{"type":14,"value":502},{"type":9,"tag":41,"props":6926,"children":6927},{"class":43,"line":426},[6928,6932,6936],{"type":9,"tag":41,"props":6929,"children":6930},{"style":48},[6931],{"type":14,"value":511},{"type":9,"tag":41,"props":6933,"children":6934},{"style":60},[6935],{"type":14,"value":516},{"type":9,"tag":41,"props":6937,"children":6938},{"style":48},[6939],{"type":14,"value":256},{"type":9,"tag":41,"props":6941,"children":6942},{"class":43,"line":434},[6943,6947,6951],{"type":9,"tag":41,"props":6944,"children":6945},{"style":48},[6946],{"type":14,"value":529},{"type":9,"tag":41,"props":6948,"children":6949},{"style":71},[6950],{"type":14,"value":534},{"type":9,"tag":41,"props":6952,"children":6953},{"style":48},[6954],{"type":14,"value":539},{"type":9,"tag":41,"props":6956,"children":6957},{"class":43,"line":505},[6958,6962,6966],{"type":9,"tag":41,"props":6959,"children":6960},{"style":48},[6961],{"type":14,"value":548},{"type":9,"tag":41,"props":6963,"children":6964},{"style":71},[6965],{"type":14,"value":553},{"type":9,"tag":41,"props":6967,"children":6968},{"style":48},[6969],{"type":14,"value":539},{"type":9,"tag":41,"props":6971,"children":6972},{"class":43,"line":523},[6973,6977,6981,6985,6989,6993,6997,7001,7005],{"type":9,"tag":41,"props":6974,"children":6975},{"style":48},[6976],{"type":14,"value":566},{"type":9,"tag":41,"props":6978,"children":6979},{"style":167},[6980],{"type":14,"value":571},{"type":9,"tag":41,"props":6982,"children":6983},{"style":48},[6984],{"type":14,"value":483},{"type":9,"tag":41,"props":6986,"children":6987},{"style":60},[6988],{"type":14,"value":580},{"type":9,"tag":41,"props":6990,"children":6991},{"style":48},[6992],{"type":14,"value":585},{"type":9,"tag":41,"props":6994,"children":6995},{"style":167},[6996],{"type":14,"value":590},{"type":9,"tag":41,"props":6998,"children":6999},{"style":48},[7000],{"type":14,"value":365},{"type":9,"tag":41,"props":7002,"children":7003},{"style":167},[7004],{"type":14,"value":599},{"type":9,"tag":41,"props":7006,"children":7007},{"style":48},[7008],{"type":14,"value":375},{"type":9,"tag":41,"props":7010,"children":7011},{"class":43,"line":542},[7012],{"type":9,"tag":41,"props":7013,"children":7014},{"style":48},[7015],{"type":14,"value":315},{"type":9,"tag":41,"props":7017,"children":7018},{"class":43,"line":560},[7019],{"type":9,"tag":41,"props":7020,"children":7021},{"style":48},[7022],{"type":14,"value":620},{"type":9,"tag":41,"props":7024,"children":7025},{"class":43,"line":606},[7026,7030,7034],{"type":9,"tag":41,"props":7027,"children":7028},{"style":48},[7029],{"type":14,"value":629},{"type":9,"tag":41,"props":7031,"children":7032},{"style":54},[7033],{"type":14,"value":57},{"type":9,"tag":41,"props":7035,"children":7036},{"style":48},[7037],{"type":14,"value":84},{"type":9,"tag":41,"props":7039,"children":7040},{"class":43,"line":614},[7041],{"type":9,"tag":41,"props":7042,"children":7043},{"emptyLinePlaceholder":147},[7044],{"type":14,"value":150},{"type":9,"tag":41,"props":7046,"children":7047},{"class":43,"line":623},[7048,7052,7056],{"type":9,"tag":41,"props":7049,"children":7050},{"style":48},[7051],{"type":14,"value":51},{"type":9,"tag":41,"props":7053,"children":7054},{"style":54},[7055],{"type":14,"value":658},{"type":9,"tag":41,"props":7057,"children":7058},{"style":48},[7059],{"type":14,"value":84},{"type":9,"tag":41,"props":7061,"children":7062},{"class":43,"line":640},[7063,7067,7071,7075,7079,7083,7087,7091,7095,7099,7103,7107,7111,7115,7119],{"type":9,"tag":41,"props":7064,"children":7065},{"style":48},[7066],{"type":14,"value":671},{"type":9,"tag":41,"props":7068,"children":7069},{"style":54},[7070],{"type":14,"value":676},{"type":9,"tag":41,"props":7072,"children":7073},{"style":48},[7074],{"type":14,"value":681},{"type":9,"tag":41,"props":7076,"children":7077},{"style":60},[7078],{"type":14,"value":686},{"type":9,"tag":41,"props":7080,"children":7081},{"style":48},[7082],{"type":14,"value":68},{"type":9,"tag":41,"props":7084,"children":7085},{"style":71},[7086],{"type":14,"value":695},{"type":9,"tag":41,"props":7088,"children":7089},{"style":48},[7090],{"type":14,"value":686},{"type":9,"tag":41,"props":7092,"children":7093},{"style":71},[7094],{"type":14,"value":695},{"type":9,"tag":41,"props":7096,"children":7097},{"style":48},[7098],{"type":14,"value":708},{"type":9,"tag":41,"props":7100,"children":7101},{"style":60},[7102],{"type":14,"value":713},{"type":9,"tag":41,"props":7104,"children":7105},{"style":48},[7106],{"type":14,"value":68},{"type":9,"tag":41,"props":7108,"children":7109},{"style":71},[7110],{"type":14,"value":695},{"type":9,"tag":41,"props":7112,"children":7113},{"style":48},[7114],{"type":14,"value":726},{"type":9,"tag":41,"props":7116,"children":7117},{"style":71},[7118],{"type":14,"value":695},{"type":9,"tag":41,"props":7120,"children":7121},{"style":48},[7122],{"type":14,"value":735},{"type":9,"tag":41,"props":7124,"children":7125},{"class":43,"line":648},[7126,7130,7134],{"type":9,"tag":41,"props":7127,"children":7128},{"style":48},[7129],{"type":14,"value":629},{"type":9,"tag":41,"props":7131,"children":7132},{"style":54},[7133],{"type":14,"value":658},{"type":9,"tag":41,"props":7135,"children":7136},{"style":48},[7137],{"type":14,"value":84},{"type":9,"tag":753,"props":7139,"children":7140},{},[7141],{"type":14,"value":757},{"title":22,"searchDepth":87,"depth":87,"links":7143},[],{"code":7145,"filePath":7146,"pascalName":7147},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\nconst formatter = useDateFormatter()\n\nconst schema = afz.object({\n  eventPeriod: afz.inputDate({\n    controlProps: {\n      range: true\n    }\n  })\n    .transform(date => formatter.convertToISO(date))\n    .meta({\n      label: '活动周期',\n      hint: '选择活动的起止日期'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Ffield-types\u002FAutoFormFieldInputDateRangeExample.vue","AutoFormFieldInputDateRangeExample",{"data":7149,"body":7150,"toc":7781},{"title":22,"description":22},{"type":6,"children":7151},[7152,7777],{"type":9,"tag":26,"props":7153,"children":7154},{},[7155],{"type":9,"tag":30,"props":7156,"children":7158},{"className":32,"code":7157,"language":34,"meta":22,"style":22},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\nconst formatter = useDateFormatter()\n\nconst schema = afz.object({\n  eventPeriod: afz.inputDate({\n    controlProps: {\n      range: true\n    }\n  })\n    .transform(date => formatter.convertToISO(date))\n    .meta({\n      label: '活动周期',\n      hint: '选择活动的起止日期'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n\n",[7159],{"type":9,"tag":37,"props":7160,"children":7161},{"__ignoreMap":22},[7162,7193,7216,7239,7246,7277,7300,7323,7330,7357,7373,7380,7392,7399,7406,7441,7456,7472,7484,7491,7498,7505,7564,7579,7594,7609,7648,7655,7662,7677,7684,7699,7762],{"type":9,"tag":41,"props":7163,"children":7164},{"class":43,"line":44},[7165,7169,7173,7177,7181,7185,7189],{"type":9,"tag":41,"props":7166,"children":7167},{"style":48},[7168],{"type":14,"value":51},{"type":9,"tag":41,"props":7170,"children":7171},{"style":54},[7172],{"type":14,"value":57},{"type":9,"tag":41,"props":7174,"children":7175},{"style":60},[7176],{"type":14,"value":63},{"type":9,"tag":41,"props":7178,"children":7179},{"style":48},[7180],{"type":14,"value":68},{"type":9,"tag":41,"props":7182,"children":7183},{"style":71},[7184],{"type":14,"value":74},{"type":9,"tag":41,"props":7186,"children":7187},{"style":60},[7188],{"type":14,"value":79},{"type":9,"tag":41,"props":7190,"children":7191},{"style":48},[7192],{"type":14,"value":84},{"type":9,"tag":41,"props":7194,"children":7195},{"class":43,"line":87},[7196,7200,7204,7208,7212],{"type":9,"tag":41,"props":7197,"children":7198},{"style":91},[7199],{"type":14,"value":94},{"type":9,"tag":41,"props":7201,"children":7202},{"style":91},[7203],{"type":14,"value":99},{"type":9,"tag":41,"props":7205,"children":7206},{"style":48},[7207],{"type":14,"value":104},{"type":9,"tag":41,"props":7209,"children":7210},{"style":91},[7211],{"type":14,"value":109},{"type":9,"tag":41,"props":7213,"children":7214},{"style":71},[7215],{"type":14,"value":114},{"type":9,"tag":41,"props":7217,"children":7218},{"class":43,"line":117},[7219,7223,7227,7231,7235],{"type":9,"tag":41,"props":7220,"children":7221},{"style":91},[7222],{"type":14,"value":94},{"type":9,"tag":41,"props":7224,"children":7225},{"style":91},[7226],{"type":14,"value":99},{"type":9,"tag":41,"props":7228,"children":7229},{"style":48},[7230],{"type":14,"value":131},{"type":9,"tag":41,"props":7232,"children":7233},{"style":91},[7234],{"type":14,"value":109},{"type":9,"tag":41,"props":7236,"children":7237},{"style":71},[7238],{"type":14,"value":140},{"type":9,"tag":41,"props":7240,"children":7241},{"class":43,"line":143},[7242],{"type":9,"tag":41,"props":7243,"children":7244},{"emptyLinePlaceholder":147},[7245],{"type":14,"value":150},{"type":9,"tag":41,"props":7247,"children":7248},{"class":43,"line":153},[7249,7253,7257,7261,7265,7269,7273],{"type":9,"tag":41,"props":7250,"children":7251},{"style":91},[7252],{"type":14,"value":159},{"type":9,"tag":41,"props":7254,"children":7255},{"style":48},[7256],{"type":14,"value":164},{"type":9,"tag":41,"props":7258,"children":7259},{"style":167},[7260],{"type":14,"value":170},{"type":9,"tag":41,"props":7262,"children":7263},{"style":48},[7264],{"type":14,"value":175},{"type":9,"tag":41,"props":7266,"children":7267},{"style":91},[7268],{"type":14,"value":68},{"type":9,"tag":41,"props":7270,"children":7271},{"style":60},[7272],{"type":14,"value":184},{"type":9,"tag":41,"props":7274,"children":7275},{"style":48},[7276],{"type":14,"value":189},{"type":9,"tag":41,"props":7278,"children":7279},{"class":43,"line":192},[7280,7284,7288,7292,7296],{"type":9,"tag":41,"props":7281,"children":7282},{"style":91},[7283],{"type":14,"value":159},{"type":9,"tag":41,"props":7285,"children":7286},{"style":167},[7287],{"type":14,"value":202},{"type":9,"tag":41,"props":7289,"children":7290},{"style":91},[7291],{"type":14,"value":207},{"type":9,"tag":41,"props":7293,"children":7294},{"style":60},[7295],{"type":14,"value":212},{"type":9,"tag":41,"props":7297,"children":7298},{"style":48},[7299],{"type":14,"value":189},{"type":9,"tag":41,"props":7301,"children":7302},{"class":43,"line":219},[7303,7307,7311,7315,7319],{"type":9,"tag":41,"props":7304,"children":7305},{"style":91},[7306],{"type":14,"value":159},{"type":9,"tag":41,"props":7308,"children":7309},{"style":167},[7310],{"type":14,"value":1992},{"type":9,"tag":41,"props":7312,"children":7313},{"style":91},[7314],{"type":14,"value":207},{"type":9,"tag":41,"props":7316,"children":7317},{"style":60},[7318],{"type":14,"value":2001},{"type":9,"tag":41,"props":7320,"children":7321},{"style":48},[7322],{"type":14,"value":189},{"type":9,"tag":41,"props":7324,"children":7325},{"class":43,"line":227},[7326],{"type":9,"tag":41,"props":7327,"children":7328},{"emptyLinePlaceholder":147},[7329],{"type":14,"value":150},{"type":9,"tag":41,"props":7331,"children":7332},{"class":43,"line":259},[7333,7337,7341,7345,7349,7353],{"type":9,"tag":41,"props":7334,"children":7335},{"style":91},[7336],{"type":14,"value":159},{"type":9,"tag":41,"props":7338,"children":7339},{"style":167},[7340],{"type":14,"value":237},{"type":9,"tag":41,"props":7342,"children":7343},{"style":91},[7344],{"type":14,"value":207},{"type":9,"tag":41,"props":7346,"children":7347},{"style":48},[7348],{"type":14,"value":246},{"type":9,"tag":41,"props":7350,"children":7351},{"style":60},[7352],{"type":14,"value":251},{"type":9,"tag":41,"props":7354,"children":7355},{"style":48},[7356],{"type":14,"value":256},{"type":9,"tag":41,"props":7358,"children":7359},{"class":43,"line":277},[7360,7365,7369],{"type":9,"tag":41,"props":7361,"children":7362},{"style":48},[7363],{"type":14,"value":7364},"  eventPeriod: afz.",{"type":9,"tag":41,"props":7366,"children":7367},{"style":60},[7368],{"type":14,"value":6760},{"type":9,"tag":41,"props":7370,"children":7371},{"style":48},[7372],{"type":14,"value":256},{"type":9,"tag":41,"props":7374,"children":7375},{"class":43,"line":286},[7376],{"type":9,"tag":41,"props":7377,"children":7378},{"style":48},[7379],{"type":14,"value":283},{"type":9,"tag":41,"props":7381,"children":7382},{"class":43,"line":300},[7383,7387],{"type":9,"tag":41,"props":7384,"children":7385},{"style":48},[7386],{"type":14,"value":2774},{"type":9,"tag":41,"props":7388,"children":7389},{"style":167},[7390],{"type":14,"value":7391},"true\n",{"type":9,"tag":41,"props":7393,"children":7394},{"class":43,"line":309},[7395],{"type":9,"tag":41,"props":7396,"children":7397},{"style":48},[7398],{"type":14,"value":306},{"type":9,"tag":41,"props":7400,"children":7401},{"class":43,"line":318},[7402],{"type":9,"tag":41,"props":7403,"children":7404},{"style":48},[7405],{"type":14,"value":315},{"type":9,"tag":41,"props":7407,"children":7408},{"class":43,"line":378},[7409,7413,7417,7421,7425,7429,7433,7437],{"type":9,"tag":41,"props":7410,"children":7411},{"style":48},[7412],{"type":14,"value":324},{"type":9,"tag":41,"props":7414,"children":7415},{"style":60},[7416],{"type":14,"value":2183},{"type":9,"tag":41,"props":7418,"children":7419},{"style":48},[7420],{"type":14,"value":334},{"type":9,"tag":41,"props":7422,"children":7423},{"style":337},[7424],{"type":14,"value":2192},{"type":9,"tag":41,"props":7426,"children":7427},{"style":91},[7428],{"type":14,"value":345},{"type":9,"tag":41,"props":7430,"children":7431},{"style":48},[7432],{"type":14,"value":2201},{"type":9,"tag":41,"props":7434,"children":7435},{"style":60},[7436],{"type":14,"value":6796},{"type":9,"tag":41,"props":7438,"children":7439},{"style":48},[7440],{"type":14,"value":2211},{"type":9,"tag":41,"props":7442,"children":7443},{"class":43,"line":395},[7444,7448,7452],{"type":9,"tag":41,"props":7445,"children":7446},{"style":48},[7447],{"type":14,"value":324},{"type":9,"tag":41,"props":7449,"children":7450},{"style":60},[7451],{"type":14,"value":388},{"type":9,"tag":41,"props":7453,"children":7454},{"style":48},[7455],{"type":14,"value":256},{"type":9,"tag":41,"props":7457,"children":7458},{"class":43,"line":408},[7459,7463,7468],{"type":9,"tag":41,"props":7460,"children":7461},{"style":48},[7462],{"type":14,"value":292},{"type":9,"tag":41,"props":7464,"children":7465},{"style":71},[7466],{"type":14,"value":7467},"'活动周期'",{"type":9,"tag":41,"props":7469,"children":7470},{"style":48},[7471],{"type":14,"value":539},{"type":9,"tag":41,"props":7473,"children":7474},{"class":43,"line":417},[7475,7479],{"type":9,"tag":41,"props":7476,"children":7477},{"style":48},[7478],{"type":14,"value":1049},{"type":9,"tag":41,"props":7480,"children":7481},{"style":71},[7482],{"type":14,"value":7483},"'选择活动的起止日期'\n",{"type":9,"tag":41,"props":7485,"children":7486},{"class":43,"line":426},[7487],{"type":9,"tag":41,"props":7488,"children":7489},{"style":48},[7490],{"type":14,"value":414},{"type":9,"tag":41,"props":7492,"children":7493},{"class":43,"line":434},[7494],{"type":9,"tag":41,"props":7495,"children":7496},{"style":48},[7497],{"type":14,"value":423},{"type":9,"tag":41,"props":7499,"children":7500},{"class":43,"line":505},[7501],{"type":9,"tag":41,"props":7502,"children":7503},{"emptyLinePlaceholder":147},[7504],{"type":14,"value":150},{"type":9,"tag":41,"props":7506,"children":7507},{"class":43,"line":523},[7508,7512,7516,7520,7524,7528,7532,7536,7540,7544,7548,7552,7556,7560],{"type":9,"tag":41,"props":7509,"children":7510},{"style":91},[7511],{"type":14,"value":440},{"type":9,"tag":41,"props":7513,"children":7514},{"style":91},[7515],{"type":14,"value":445},{"type":9,"tag":41,"props":7517,"children":7518},{"style":60},[7519],{"type":14,"value":450},{"type":9,"tag":41,"props":7521,"children":7522},{"style":48},[7523],{"type":14,"value":334},{"type":9,"tag":41,"props":7525,"children":7526},{"style":337},[7527],{"type":14,"value":459},{"type":9,"tag":41,"props":7529,"children":7530},{"style":91},[7531],{"type":14,"value":464},{"type":9,"tag":41,"props":7533,"children":7534},{"style":60},[7535],{"type":14,"value":469},{"type":9,"tag":41,"props":7537,"children":7538},{"style":48},[7539],{"type":14,"value":51},{"type":9,"tag":41,"props":7541,"children":7542},{"style":60},[7543],{"type":14,"value":478},{"type":9,"tag":41,"props":7545,"children":7546},{"style":48},[7547],{"type":14,"value":483},{"type":9,"tag":41,"props":7549,"children":7550},{"style":60},[7551],{"type":14,"value":488},{"type":9,"tag":41,"props":7553,"children":7554},{"style":48},[7555],{"type":14,"value":51},{"type":9,"tag":41,"props":7557,"children":7558},{"style":91},[7559],{"type":14,"value":497},{"type":9,"tag":41,"props":7561,"children":7562},{"style":48},[7563],{"type":14,"value":502},{"type":9,"tag":41,"props":7565,"children":7566},{"class":43,"line":542},[7567,7571,7575],{"type":9,"tag":41,"props":7568,"children":7569},{"style":48},[7570],{"type":14,"value":511},{"type":9,"tag":41,"props":7572,"children":7573},{"style":60},[7574],{"type":14,"value":516},{"type":9,"tag":41,"props":7576,"children":7577},{"style":48},[7578],{"type":14,"value":256},{"type":9,"tag":41,"props":7580,"children":7581},{"class":43,"line":560},[7582,7586,7590],{"type":9,"tag":41,"props":7583,"children":7584},{"style":48},[7585],{"type":14,"value":529},{"type":9,"tag":41,"props":7587,"children":7588},{"style":71},[7589],{"type":14,"value":534},{"type":9,"tag":41,"props":7591,"children":7592},{"style":48},[7593],{"type":14,"value":539},{"type":9,"tag":41,"props":7595,"children":7596},{"class":43,"line":606},[7597,7601,7605],{"type":9,"tag":41,"props":7598,"children":7599},{"style":48},[7600],{"type":14,"value":548},{"type":9,"tag":41,"props":7602,"children":7603},{"style":71},[7604],{"type":14,"value":553},{"type":9,"tag":41,"props":7606,"children":7607},{"style":48},[7608],{"type":14,"value":539},{"type":9,"tag":41,"props":7610,"children":7611},{"class":43,"line":614},[7612,7616,7620,7624,7628,7632,7636,7640,7644],{"type":9,"tag":41,"props":7613,"children":7614},{"style":48},[7615],{"type":14,"value":566},{"type":9,"tag":41,"props":7617,"children":7618},{"style":167},[7619],{"type":14,"value":571},{"type":9,"tag":41,"props":7621,"children":7622},{"style":48},[7623],{"type":14,"value":483},{"type":9,"tag":41,"props":7625,"children":7626},{"style":60},[7627],{"type":14,"value":580},{"type":9,"tag":41,"props":7629,"children":7630},{"style":48},[7631],{"type":14,"value":585},{"type":9,"tag":41,"props":7633,"children":7634},{"style":167},[7635],{"type":14,"value":590},{"type":9,"tag":41,"props":7637,"children":7638},{"style":48},[7639],{"type":14,"value":365},{"type":9,"tag":41,"props":7641,"children":7642},{"style":167},[7643],{"type":14,"value":599},{"type":9,"tag":41,"props":7645,"children":7646},{"style":48},[7647],{"type":14,"value":375},{"type":9,"tag":41,"props":7649,"children":7650},{"class":43,"line":623},[7651],{"type":9,"tag":41,"props":7652,"children":7653},{"style":48},[7654],{"type":14,"value":315},{"type":9,"tag":41,"props":7656,"children":7657},{"class":43,"line":640},[7658],{"type":9,"tag":41,"props":7659,"children":7660},{"style":48},[7661],{"type":14,"value":620},{"type":9,"tag":41,"props":7663,"children":7664},{"class":43,"line":648},[7665,7669,7673],{"type":9,"tag":41,"props":7666,"children":7667},{"style":48},[7668],{"type":14,"value":629},{"type":9,"tag":41,"props":7670,"children":7671},{"style":54},[7672],{"type":14,"value":57},{"type":9,"tag":41,"props":7674,"children":7675},{"style":48},[7676],{"type":14,"value":84},{"type":9,"tag":41,"props":7678,"children":7679},{"class":43,"line":665},[7680],{"type":9,"tag":41,"props":7681,"children":7682},{"emptyLinePlaceholder":147},[7683],{"type":14,"value":150},{"type":9,"tag":41,"props":7685,"children":7686},{"class":43,"line":738},[7687,7691,7695],{"type":9,"tag":41,"props":7688,"children":7689},{"style":48},[7690],{"type":14,"value":51},{"type":9,"tag":41,"props":7692,"children":7693},{"style":54},[7694],{"type":14,"value":658},{"type":9,"tag":41,"props":7696,"children":7697},{"style":48},[7698],{"type":14,"value":84},{"type":9,"tag":41,"props":7700,"children":7701},{"class":43,"line":3093},[7702,7706,7710,7714,7718,7722,7726,7730,7734,7738,7742,7746,7750,7754,7758],{"type":9,"tag":41,"props":7703,"children":7704},{"style":48},[7705],{"type":14,"value":671},{"type":9,"tag":41,"props":7707,"children":7708},{"style":54},[7709],{"type":14,"value":676},{"type":9,"tag":41,"props":7711,"children":7712},{"style":48},[7713],{"type":14,"value":681},{"type":9,"tag":41,"props":7715,"children":7716},{"style":60},[7717],{"type":14,"value":686},{"type":9,"tag":41,"props":7719,"children":7720},{"style":48},[7721],{"type":14,"value":68},{"type":9,"tag":41,"props":7723,"children":7724},{"style":71},[7725],{"type":14,"value":695},{"type":9,"tag":41,"props":7727,"children":7728},{"style":48},[7729],{"type":14,"value":686},{"type":9,"tag":41,"props":7731,"children":7732},{"style":71},[7733],{"type":14,"value":695},{"type":9,"tag":41,"props":7735,"children":7736},{"style":48},[7737],{"type":14,"value":708},{"type":9,"tag":41,"props":7739,"children":7740},{"style":60},[7741],{"type":14,"value":713},{"type":9,"tag":41,"props":7743,"children":7744},{"style":48},[7745],{"type":14,"value":68},{"type":9,"tag":41,"props":7747,"children":7748},{"style":71},[7749],{"type":14,"value":695},{"type":9,"tag":41,"props":7751,"children":7752},{"style":48},[7753],{"type":14,"value":726},{"type":9,"tag":41,"props":7755,"children":7756},{"style":71},[7757],{"type":14,"value":695},{"type":9,"tag":41,"props":7759,"children":7760},{"style":48},[7761],{"type":14,"value":735},{"type":9,"tag":41,"props":7763,"children":7764},{"class":43,"line":3101},[7765,7769,7773],{"type":9,"tag":41,"props":7766,"children":7767},{"style":48},[7768],{"type":14,"value":629},{"type":9,"tag":41,"props":7770,"children":7771},{"style":54},[7772],{"type":14,"value":658},{"type":9,"tag":41,"props":7774,"children":7775},{"style":48},[7776],{"type":14,"value":84},{"type":9,"tag":753,"props":7778,"children":7779},{},[7780],{"type":14,"value":757},{"title":22,"searchDepth":87,"depth":87,"links":7782},[],{"code":7784,"filePath":7785,"pascalName":7786},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  meetingTime: afz.inputTime()\n    .refine(\n      time => time.hour >= 9 && time.hour \u003C 18,\n      { message: '会议时间必须在工作时间内 (9:00-18:00)' }\n    )\n    .transform(time => `${String(time.hour).padStart(2, '0')}:${String(time.minute).padStart(2, '0')}`)\n    .meta({\n      label: '会议时间',\n      description: '请选择会议时间（工作时间内）'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Ffield-types\u002FAutoFormFieldInputTimeExample.vue","AutoFormFieldInputTimeExample",{"data":7788,"body":7789,"toc":8562},{"title":22,"description":22},{"type":6,"children":7790},[7791,8558],{"type":9,"tag":26,"props":7792,"children":7793},{},[7794],{"type":9,"tag":30,"props":7795,"children":7797},{"className":32,"code":7796,"language":34,"meta":22,"style":22},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  meetingTime: afz.inputTime()\n    .refine(\n      time => time.hour >= 9 && time.hour \u003C 18,\n      { message: '会议时间必须在工作时间内 (9:00-18:00)' }\n    )\n    .transform(time => `${String(time.hour).padStart(2, '0')}:${String(time.minute).padStart(2, '0')}`)\n    .meta({\n      label: '会议时间',\n      description: '请选择会议时间（工作时间内）'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n\n",[7798],{"type":9,"tag":37,"props":7799,"children":7800},{"__ignoreMap":22},[7801,7832,7855,7878,7885,7916,7939,7946,7973,7990,8005,8054,8070,8077,8222,8237,8253,8265,8272,8279,8286,8345,8360,8375,8390,8429,8436,8443,8458,8465,8480,8543],{"type":9,"tag":41,"props":7802,"children":7803},{"class":43,"line":44},[7804,7808,7812,7816,7820,7824,7828],{"type":9,"tag":41,"props":7805,"children":7806},{"style":48},[7807],{"type":14,"value":51},{"type":9,"tag":41,"props":7809,"children":7810},{"style":54},[7811],{"type":14,"value":57},{"type":9,"tag":41,"props":7813,"children":7814},{"style":60},[7815],{"type":14,"value":63},{"type":9,"tag":41,"props":7817,"children":7818},{"style":48},[7819],{"type":14,"value":68},{"type":9,"tag":41,"props":7821,"children":7822},{"style":71},[7823],{"type":14,"value":74},{"type":9,"tag":41,"props":7825,"children":7826},{"style":60},[7827],{"type":14,"value":79},{"type":9,"tag":41,"props":7829,"children":7830},{"style":48},[7831],{"type":14,"value":84},{"type":9,"tag":41,"props":7833,"children":7834},{"class":43,"line":87},[7835,7839,7843,7847,7851],{"type":9,"tag":41,"props":7836,"children":7837},{"style":91},[7838],{"type":14,"value":94},{"type":9,"tag":41,"props":7840,"children":7841},{"style":91},[7842],{"type":14,"value":99},{"type":9,"tag":41,"props":7844,"children":7845},{"style":48},[7846],{"type":14,"value":104},{"type":9,"tag":41,"props":7848,"children":7849},{"style":91},[7850],{"type":14,"value":109},{"type":9,"tag":41,"props":7852,"children":7853},{"style":71},[7854],{"type":14,"value":114},{"type":9,"tag":41,"props":7856,"children":7857},{"class":43,"line":117},[7858,7862,7866,7870,7874],{"type":9,"tag":41,"props":7859,"children":7860},{"style":91},[7861],{"type":14,"value":94},{"type":9,"tag":41,"props":7863,"children":7864},{"style":91},[7865],{"type":14,"value":99},{"type":9,"tag":41,"props":7867,"children":7868},{"style":48},[7869],{"type":14,"value":131},{"type":9,"tag":41,"props":7871,"children":7872},{"style":91},[7873],{"type":14,"value":109},{"type":9,"tag":41,"props":7875,"children":7876},{"style":71},[7877],{"type":14,"value":140},{"type":9,"tag":41,"props":7879,"children":7880},{"class":43,"line":143},[7881],{"type":9,"tag":41,"props":7882,"children":7883},{"emptyLinePlaceholder":147},[7884],{"type":14,"value":150},{"type":9,"tag":41,"props":7886,"children":7887},{"class":43,"line":153},[7888,7892,7896,7900,7904,7908,7912],{"type":9,"tag":41,"props":7889,"children":7890},{"style":91},[7891],{"type":14,"value":159},{"type":9,"tag":41,"props":7893,"children":7894},{"style":48},[7895],{"type":14,"value":164},{"type":9,"tag":41,"props":7897,"children":7898},{"style":167},[7899],{"type":14,"value":170},{"type":9,"tag":41,"props":7901,"children":7902},{"style":48},[7903],{"type":14,"value":175},{"type":9,"tag":41,"props":7905,"children":7906},{"style":91},[7907],{"type":14,"value":68},{"type":9,"tag":41,"props":7909,"children":7910},{"style":60},[7911],{"type":14,"value":184},{"type":9,"tag":41,"props":7913,"children":7914},{"style":48},[7915],{"type":14,"value":189},{"type":9,"tag":41,"props":7917,"children":7918},{"class":43,"line":192},[7919,7923,7927,7931,7935],{"type":9,"tag":41,"props":7920,"children":7921},{"style":91},[7922],{"type":14,"value":159},{"type":9,"tag":41,"props":7924,"children":7925},{"style":167},[7926],{"type":14,"value":202},{"type":9,"tag":41,"props":7928,"children":7929},{"style":91},[7930],{"type":14,"value":207},{"type":9,"tag":41,"props":7932,"children":7933},{"style":60},[7934],{"type":14,"value":212},{"type":9,"tag":41,"props":7936,"children":7937},{"style":48},[7938],{"type":14,"value":189},{"type":9,"tag":41,"props":7940,"children":7941},{"class":43,"line":219},[7942],{"type":9,"tag":41,"props":7943,"children":7944},{"emptyLinePlaceholder":147},[7945],{"type":14,"value":150},{"type":9,"tag":41,"props":7947,"children":7948},{"class":43,"line":227},[7949,7953,7957,7961,7965,7969],{"type":9,"tag":41,"props":7950,"children":7951},{"style":91},[7952],{"type":14,"value":159},{"type":9,"tag":41,"props":7954,"children":7955},{"style":167},[7956],{"type":14,"value":237},{"type":9,"tag":41,"props":7958,"children":7959},{"style":91},[7960],{"type":14,"value":207},{"type":9,"tag":41,"props":7962,"children":7963},{"style":48},[7964],{"type":14,"value":246},{"type":9,"tag":41,"props":7966,"children":7967},{"style":60},[7968],{"type":14,"value":251},{"type":9,"tag":41,"props":7970,"children":7971},{"style":48},[7972],{"type":14,"value":256},{"type":9,"tag":41,"props":7974,"children":7975},{"class":43,"line":259},[7976,7981,7986],{"type":9,"tag":41,"props":7977,"children":7978},{"style":48},[7979],{"type":14,"value":7980},"  meetingTime: afz.",{"type":9,"tag":41,"props":7982,"children":7983},{"style":60},[7984],{"type":14,"value":7985},"inputTime",{"type":9,"tag":41,"props":7987,"children":7988},{"style":48},[7989],{"type":14,"value":189},{"type":9,"tag":41,"props":7991,"children":7992},{"class":43,"line":277},[7993,7997,8001],{"type":9,"tag":41,"props":7994,"children":7995},{"style":48},[7996],{"type":14,"value":324},{"type":9,"tag":41,"props":7998,"children":7999},{"style":60},[8000],{"type":14,"value":329},{"type":9,"tag":41,"props":8002,"children":8003},{"style":48},[8004],{"type":14,"value":2083},{"type":9,"tag":41,"props":8006,"children":8007},{"class":43,"line":286},[8008,8013,8017,8022,8027,8032,8037,8041,8045,8050],{"type":9,"tag":41,"props":8009,"children":8010},{"style":337},[8011],{"type":14,"value":8012},"      time",{"type":9,"tag":41,"props":8014,"children":8015},{"style":91},[8016],{"type":14,"value":345},{"type":9,"tag":41,"props":8018,"children":8019},{"style":48},[8020],{"type":14,"value":8021}," time.hour ",{"type":9,"tag":41,"props":8023,"children":8024},{"style":91},[8025],{"type":14,"value":8026},">=",{"type":9,"tag":41,"props":8028,"children":8029},{"style":167},[8030],{"type":14,"value":8031}," 9",{"type":9,"tag":41,"props":8033,"children":8034},{"style":91},[8035],{"type":14,"value":8036}," &&",{"type":9,"tag":41,"props":8038,"children":8039},{"style":48},[8040],{"type":14,"value":8021},{"type":9,"tag":41,"props":8042,"children":8043},{"style":91},[8044],{"type":14,"value":51},{"type":9,"tag":41,"props":8046,"children":8047},{"style":167},[8048],{"type":14,"value":8049}," 18",{"type":9,"tag":41,"props":8051,"children":8052},{"style":48},[8053],{"type":14,"value":539},{"type":9,"tag":41,"props":8055,"children":8056},{"class":43,"line":300},[8057,8061,8066],{"type":9,"tag":41,"props":8058,"children":8059},{"style":48},[8060],{"type":14,"value":2154},{"type":9,"tag":41,"props":8062,"children":8063},{"style":71},[8064],{"type":14,"value":8065},"'会议时间必须在工作时间内 (9:00-18:00)'",{"type":9,"tag":41,"props":8067,"children":8068},{"style":48},[8069],{"type":14,"value":1550},{"type":9,"tag":41,"props":8071,"children":8072},{"class":43,"line":309},[8073],{"type":9,"tag":41,"props":8074,"children":8075},{"style":48},[8076],{"type":14,"value":2171},{"type":9,"tag":41,"props":8078,"children":8079},{"class":43,"line":318},[8080,8084,8088,8092,8097,8101,8106,8111,8115,8119,8123,8128,8132,8137,8141,8145,8149,8154,8159,8164,8168,8172,8176,8180,8185,8189,8193,8197,8201,8205,8209,8213,8218],{"type":9,"tag":41,"props":8081,"children":8082},{"style":48},[8083],{"type":14,"value":324},{"type":9,"tag":41,"props":8085,"children":8086},{"style":60},[8087],{"type":14,"value":2183},{"type":9,"tag":41,"props":8089,"children":8090},{"style":48},[8091],{"type":14,"value":334},{"type":9,"tag":41,"props":8093,"children":8094},{"style":337},[8095],{"type":14,"value":8096},"time",{"type":9,"tag":41,"props":8098,"children":8099},{"style":91},[8100],{"type":14,"value":345},{"type":9,"tag":41,"props":8102,"children":8103},{"style":71},[8104],{"type":14,"value":8105}," `${",{"type":9,"tag":41,"props":8107,"children":8108},{"style":60},[8109],{"type":14,"value":8110},"String",{"type":9,"tag":41,"props":8112,"children":8113},{"style":71},[8114],{"type":14,"value":334},{"type":9,"tag":41,"props":8116,"children":8117},{"style":48},[8118],{"type":14,"value":8096},{"type":9,"tag":41,"props":8120,"children":8121},{"style":71},[8122],{"type":14,"value":483},{"type":9,"tag":41,"props":8124,"children":8125},{"style":48},[8126],{"type":14,"value":8127},"hour",{"type":9,"tag":41,"props":8129,"children":8130},{"style":71},[8131],{"type":14,"value":1576},{"type":9,"tag":41,"props":8133,"children":8134},{"style":60},[8135],{"type":14,"value":8136},"padStart",{"type":9,"tag":41,"props":8138,"children":8139},{"style":71},[8140],{"type":14,"value":334},{"type":9,"tag":41,"props":8142,"children":8143},{"style":167},[8144],{"type":14,"value":599},{"type":9,"tag":41,"props":8146,"children":8147},{"style":71},[8148],{"type":14,"value":365},{"type":9,"tag":41,"props":8150,"children":8151},{"style":71},[8152],{"type":14,"value":8153},"'0'",{"type":9,"tag":41,"props":8155,"children":8156},{"style":71},[8157],{"type":14,"value":8158},")",{"type":9,"tag":41,"props":8160,"children":8161},{"style":71},[8162],{"type":14,"value":8163},"}:${",{"type":9,"tag":41,"props":8165,"children":8166},{"style":60},[8167],{"type":14,"value":8110},{"type":9,"tag":41,"props":8169,"children":8170},{"style":71},[8171],{"type":14,"value":334},{"type":9,"tag":41,"props":8173,"children":8174},{"style":48},[8175],{"type":14,"value":8096},{"type":9,"tag":41,"props":8177,"children":8178},{"style":71},[8179],{"type":14,"value":483},{"type":9,"tag":41,"props":8181,"children":8182},{"style":48},[8183],{"type":14,"value":8184},"minute",{"type":9,"tag":41,"props":8186,"children":8187},{"style":71},[8188],{"type":14,"value":1576},{"type":9,"tag":41,"props":8190,"children":8191},{"style":60},[8192],{"type":14,"value":8136},{"type":9,"tag":41,"props":8194,"children":8195},{"style":71},[8196],{"type":14,"value":334},{"type":9,"tag":41,"props":8198,"children":8199},{"style":167},[8200],{"type":14,"value":599},{"type":9,"tag":41,"props":8202,"children":8203},{"style":71},[8204],{"type":14,"value":365},{"type":9,"tag":41,"props":8206,"children":8207},{"style":71},[8208],{"type":14,"value":8153},{"type":9,"tag":41,"props":8210,"children":8211},{"style":71},[8212],{"type":14,"value":8158},{"type":9,"tag":41,"props":8214,"children":8215},{"style":71},[8216],{"type":14,"value":8217},"}`",{"type":9,"tag":41,"props":8219,"children":8220},{"style":48},[8221],{"type":14,"value":375},{"type":9,"tag":41,"props":8223,"children":8224},{"class":43,"line":378},[8225,8229,8233],{"type":9,"tag":41,"props":8226,"children":8227},{"style":48},[8228],{"type":14,"value":324},{"type":9,"tag":41,"props":8230,"children":8231},{"style":60},[8232],{"type":14,"value":388},{"type":9,"tag":41,"props":8234,"children":8235},{"style":48},[8236],{"type":14,"value":256},{"type":9,"tag":41,"props":8238,"children":8239},{"class":43,"line":395},[8240,8244,8249],{"type":9,"tag":41,"props":8241,"children":8242},{"style":48},[8243],{"type":14,"value":292},{"type":9,"tag":41,"props":8245,"children":8246},{"style":71},[8247],{"type":14,"value":8248},"'会议时间'",{"type":9,"tag":41,"props":8250,"children":8251},{"style":48},[8252],{"type":14,"value":539},{"type":9,"tag":41,"props":8254,"children":8255},{"class":43,"line":408},[8256,8260],{"type":9,"tag":41,"props":8257,"children":8258},{"style":48},[8259],{"type":14,"value":6839},{"type":9,"tag":41,"props":8261,"children":8262},{"style":71},[8263],{"type":14,"value":8264},"'请选择会议时间（工作时间内）'\n",{"type":9,"tag":41,"props":8266,"children":8267},{"class":43,"line":417},[8268],{"type":9,"tag":41,"props":8269,"children":8270},{"style":48},[8271],{"type":14,"value":414},{"type":9,"tag":41,"props":8273,"children":8274},{"class":43,"line":426},[8275],{"type":9,"tag":41,"props":8276,"children":8277},{"style":48},[8278],{"type":14,"value":423},{"type":9,"tag":41,"props":8280,"children":8281},{"class":43,"line":434},[8282],{"type":9,"tag":41,"props":8283,"children":8284},{"emptyLinePlaceholder":147},[8285],{"type":14,"value":150},{"type":9,"tag":41,"props":8287,"children":8288},{"class":43,"line":505},[8289,8293,8297,8301,8305,8309,8313,8317,8321,8325,8329,8333,8337,8341],{"type":9,"tag":41,"props":8290,"children":8291},{"style":91},[8292],{"type":14,"value":440},{"type":9,"tag":41,"props":8294,"children":8295},{"style":91},[8296],{"type":14,"value":445},{"type":9,"tag":41,"props":8298,"children":8299},{"style":60},[8300],{"type":14,"value":450},{"type":9,"tag":41,"props":8302,"children":8303},{"style":48},[8304],{"type":14,"value":334},{"type":9,"tag":41,"props":8306,"children":8307},{"style":337},[8308],{"type":14,"value":459},{"type":9,"tag":41,"props":8310,"children":8311},{"style":91},[8312],{"type":14,"value":464},{"type":9,"tag":41,"props":8314,"children":8315},{"style":60},[8316],{"type":14,"value":469},{"type":9,"tag":41,"props":8318,"children":8319},{"style":48},[8320],{"type":14,"value":51},{"type":9,"tag":41,"props":8322,"children":8323},{"style":60},[8324],{"type":14,"value":478},{"type":9,"tag":41,"props":8326,"children":8327},{"style":48},[8328],{"type":14,"value":483},{"type":9,"tag":41,"props":8330,"children":8331},{"style":60},[8332],{"type":14,"value":488},{"type":9,"tag":41,"props":8334,"children":8335},{"style":48},[8336],{"type":14,"value":51},{"type":9,"tag":41,"props":8338,"children":8339},{"style":91},[8340],{"type":14,"value":497},{"type":9,"tag":41,"props":8342,"children":8343},{"style":48},[8344],{"type":14,"value":502},{"type":9,"tag":41,"props":8346,"children":8347},{"class":43,"line":523},[8348,8352,8356],{"type":9,"tag":41,"props":8349,"children":8350},{"style":48},[8351],{"type":14,"value":511},{"type":9,"tag":41,"props":8353,"children":8354},{"style":60},[8355],{"type":14,"value":516},{"type":9,"tag":41,"props":8357,"children":8358},{"style":48},[8359],{"type":14,"value":256},{"type":9,"tag":41,"props":8361,"children":8362},{"class":43,"line":542},[8363,8367,8371],{"type":9,"tag":41,"props":8364,"children":8365},{"style":48},[8366],{"type":14,"value":529},{"type":9,"tag":41,"props":8368,"children":8369},{"style":71},[8370],{"type":14,"value":534},{"type":9,"tag":41,"props":8372,"children":8373},{"style":48},[8374],{"type":14,"value":539},{"type":9,"tag":41,"props":8376,"children":8377},{"class":43,"line":560},[8378,8382,8386],{"type":9,"tag":41,"props":8379,"children":8380},{"style":48},[8381],{"type":14,"value":548},{"type":9,"tag":41,"props":8383,"children":8384},{"style":71},[8385],{"type":14,"value":553},{"type":9,"tag":41,"props":8387,"children":8388},{"style":48},[8389],{"type":14,"value":539},{"type":9,"tag":41,"props":8391,"children":8392},{"class":43,"line":606},[8393,8397,8401,8405,8409,8413,8417,8421,8425],{"type":9,"tag":41,"props":8394,"children":8395},{"style":48},[8396],{"type":14,"value":566},{"type":9,"tag":41,"props":8398,"children":8399},{"style":167},[8400],{"type":14,"value":571},{"type":9,"tag":41,"props":8402,"children":8403},{"style":48},[8404],{"type":14,"value":483},{"type":9,"tag":41,"props":8406,"children":8407},{"style":60},[8408],{"type":14,"value":580},{"type":9,"tag":41,"props":8410,"children":8411},{"style":48},[8412],{"type":14,"value":585},{"type":9,"tag":41,"props":8414,"children":8415},{"style":167},[8416],{"type":14,"value":590},{"type":9,"tag":41,"props":8418,"children":8419},{"style":48},[8420],{"type":14,"value":365},{"type":9,"tag":41,"props":8422,"children":8423},{"style":167},[8424],{"type":14,"value":599},{"type":9,"tag":41,"props":8426,"children":8427},{"style":48},[8428],{"type":14,"value":375},{"type":9,"tag":41,"props":8430,"children":8431},{"class":43,"line":614},[8432],{"type":9,"tag":41,"props":8433,"children":8434},{"style":48},[8435],{"type":14,"value":315},{"type":9,"tag":41,"props":8437,"children":8438},{"class":43,"line":623},[8439],{"type":9,"tag":41,"props":8440,"children":8441},{"style":48},[8442],{"type":14,"value":620},{"type":9,"tag":41,"props":8444,"children":8445},{"class":43,"line":640},[8446,8450,8454],{"type":9,"tag":41,"props":8447,"children":8448},{"style":48},[8449],{"type":14,"value":629},{"type":9,"tag":41,"props":8451,"children":8452},{"style":54},[8453],{"type":14,"value":57},{"type":9,"tag":41,"props":8455,"children":8456},{"style":48},[8457],{"type":14,"value":84},{"type":9,"tag":41,"props":8459,"children":8460},{"class":43,"line":648},[8461],{"type":9,"tag":41,"props":8462,"children":8463},{"emptyLinePlaceholder":147},[8464],{"type":14,"value":150},{"type":9,"tag":41,"props":8466,"children":8467},{"class":43,"line":665},[8468,8472,8476],{"type":9,"tag":41,"props":8469,"children":8470},{"style":48},[8471],{"type":14,"value":51},{"type":9,"tag":41,"props":8473,"children":8474},{"style":54},[8475],{"type":14,"value":658},{"type":9,"tag":41,"props":8477,"children":8478},{"style":48},[8479],{"type":14,"value":84},{"type":9,"tag":41,"props":8481,"children":8482},{"class":43,"line":738},[8483,8487,8491,8495,8499,8503,8507,8511,8515,8519,8523,8527,8531,8535,8539],{"type":9,"tag":41,"props":8484,"children":8485},{"style":48},[8486],{"type":14,"value":671},{"type":9,"tag":41,"props":8488,"children":8489},{"style":54},[8490],{"type":14,"value":676},{"type":9,"tag":41,"props":8492,"children":8493},{"style":48},[8494],{"type":14,"value":681},{"type":9,"tag":41,"props":8496,"children":8497},{"style":60},[8498],{"type":14,"value":686},{"type":9,"tag":41,"props":8500,"children":8501},{"style":48},[8502],{"type":14,"value":68},{"type":9,"tag":41,"props":8504,"children":8505},{"style":71},[8506],{"type":14,"value":695},{"type":9,"tag":41,"props":8508,"children":8509},{"style":48},[8510],{"type":14,"value":686},{"type":9,"tag":41,"props":8512,"children":8513},{"style":71},[8514],{"type":14,"value":695},{"type":9,"tag":41,"props":8516,"children":8517},{"style":48},[8518],{"type":14,"value":708},{"type":9,"tag":41,"props":8520,"children":8521},{"style":60},[8522],{"type":14,"value":713},{"type":9,"tag":41,"props":8524,"children":8525},{"style":48},[8526],{"type":14,"value":68},{"type":9,"tag":41,"props":8528,"children":8529},{"style":71},[8530],{"type":14,"value":695},{"type":9,"tag":41,"props":8532,"children":8533},{"style":48},[8534],{"type":14,"value":726},{"type":9,"tag":41,"props":8536,"children":8537},{"style":71},[8538],{"type":14,"value":695},{"type":9,"tag":41,"props":8540,"children":8541},{"style":48},[8542],{"type":14,"value":735},{"type":9,"tag":41,"props":8544,"children":8545},{"class":43,"line":3093},[8546,8550,8554],{"type":9,"tag":41,"props":8547,"children":8548},{"style":48},[8549],{"type":14,"value":629},{"type":9,"tag":41,"props":8551,"children":8552},{"style":54},[8553],{"type":14,"value":658},{"type":9,"tag":41,"props":8555,"children":8556},{"style":48},[8557],{"type":14,"value":84},{"type":9,"tag":753,"props":8559,"children":8560},{},[8561],{"type":14,"value":757},{"title":22,"searchDepth":87,"depth":87,"links":8563},[],{"code":8565,"filePath":8566,"pascalName":8567},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  scheduledDate: afz.isoDate()\n    .meta({\n      label: '计划日期',\n      description: '输入 ISO 格式日期 (YYYY-MM-DD)',\n      hint: '例如: 2025-12-31'\n    }),\n  scheduledTime: afz.isoTime()\n    .meta({\n      label: '计划时间',\n      description: '输入 ISO 格式时间 (HH:MM:SS)',\n      hint: '例如: 14:30:00'\n    }),\n  createdAt: afz.isoDatetime()\n    .optional()\n    .meta({\n      label: '创建时间',\n      description: '输入 ISO 8601 完整时间戳',\n      hint: '例如: 2025-12-31T14:30:00Z'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Ffield-types\u002FAutoFormFieldIsoExample.vue","AutoFormFieldIsoExample",{"data":8569,"body":8570,"toc":9314},{"title":22,"description":22},{"type":6,"children":8571},[8572,9310],{"type":9,"tag":26,"props":8573,"children":8574},{},[8575],{"type":9,"tag":30,"props":8576,"children":8578},{"className":32,"code":8577,"language":34,"meta":22,"style":22},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  scheduledDate: afz.isoDate()\n    .meta({\n      label: '计划日期',\n      description: '输入 ISO 格式日期 (YYYY-MM-DD)',\n      hint: '例如: 2025-12-31'\n    }),\n  scheduledTime: afz.isoTime()\n    .meta({\n      label: '计划时间',\n      description: '输入 ISO 格式时间 (HH:MM:SS)',\n      hint: '例如: 14:30:00'\n    }),\n  createdAt: afz.isoDatetime()\n    .optional()\n    .meta({\n      label: '创建时间',\n      description: '输入 ISO 8601 完整时间戳',\n      hint: '例如: 2025-12-31T14:30:00Z'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n\n",[8579],{"type":9,"tag":37,"props":8580,"children":8581},{"__ignoreMap":22},[8582,8613,8636,8659,8666,8697,8720,8727,8754,8771,8786,8802,8818,8830,8838,8855,8870,8886,8902,8914,8921,8938,8954,8969,8985,9001,9013,9020,9027,9034,9093,9108,9123,9138,9177,9184,9191,9206,9214,9230,9294],{"type":9,"tag":41,"props":8583,"children":8584},{"class":43,"line":44},[8585,8589,8593,8597,8601,8605,8609],{"type":9,"tag":41,"props":8586,"children":8587},{"style":48},[8588],{"type":14,"value":51},{"type":9,"tag":41,"props":8590,"children":8591},{"style":54},[8592],{"type":14,"value":57},{"type":9,"tag":41,"props":8594,"children":8595},{"style":60},[8596],{"type":14,"value":63},{"type":9,"tag":41,"props":8598,"children":8599},{"style":48},[8600],{"type":14,"value":68},{"type":9,"tag":41,"props":8602,"children":8603},{"style":71},[8604],{"type":14,"value":74},{"type":9,"tag":41,"props":8606,"children":8607},{"style":60},[8608],{"type":14,"value":79},{"type":9,"tag":41,"props":8610,"children":8611},{"style":48},[8612],{"type":14,"value":84},{"type":9,"tag":41,"props":8614,"children":8615},{"class":43,"line":87},[8616,8620,8624,8628,8632],{"type":9,"tag":41,"props":8617,"children":8618},{"style":91},[8619],{"type":14,"value":94},{"type":9,"tag":41,"props":8621,"children":8622},{"style":91},[8623],{"type":14,"value":99},{"type":9,"tag":41,"props":8625,"children":8626},{"style":48},[8627],{"type":14,"value":104},{"type":9,"tag":41,"props":8629,"children":8630},{"style":91},[8631],{"type":14,"value":109},{"type":9,"tag":41,"props":8633,"children":8634},{"style":71},[8635],{"type":14,"value":114},{"type":9,"tag":41,"props":8637,"children":8638},{"class":43,"line":117},[8639,8643,8647,8651,8655],{"type":9,"tag":41,"props":8640,"children":8641},{"style":91},[8642],{"type":14,"value":94},{"type":9,"tag":41,"props":8644,"children":8645},{"style":91},[8646],{"type":14,"value":99},{"type":9,"tag":41,"props":8648,"children":8649},{"style":48},[8650],{"type":14,"value":131},{"type":9,"tag":41,"props":8652,"children":8653},{"style":91},[8654],{"type":14,"value":109},{"type":9,"tag":41,"props":8656,"children":8657},{"style":71},[8658],{"type":14,"value":140},{"type":9,"tag":41,"props":8660,"children":8661},{"class":43,"line":143},[8662],{"type":9,"tag":41,"props":8663,"children":8664},{"emptyLinePlaceholder":147},[8665],{"type":14,"value":150},{"type":9,"tag":41,"props":8667,"children":8668},{"class":43,"line":153},[8669,8673,8677,8681,8685,8689,8693],{"type":9,"tag":41,"props":8670,"children":8671},{"style":91},[8672],{"type":14,"value":159},{"type":9,"tag":41,"props":8674,"children":8675},{"style":48},[8676],{"type":14,"value":164},{"type":9,"tag":41,"props":8678,"children":8679},{"style":167},[8680],{"type":14,"value":170},{"type":9,"tag":41,"props":8682,"children":8683},{"style":48},[8684],{"type":14,"value":175},{"type":9,"tag":41,"props":8686,"children":8687},{"style":91},[8688],{"type":14,"value":68},{"type":9,"tag":41,"props":8690,"children":8691},{"style":60},[8692],{"type":14,"value":184},{"type":9,"tag":41,"props":8694,"children":8695},{"style":48},[8696],{"type":14,"value":189},{"type":9,"tag":41,"props":8698,"children":8699},{"class":43,"line":192},[8700,8704,8708,8712,8716],{"type":9,"tag":41,"props":8701,"children":8702},{"style":91},[8703],{"type":14,"value":159},{"type":9,"tag":41,"props":8705,"children":8706},{"style":167},[8707],{"type":14,"value":202},{"type":9,"tag":41,"props":8709,"children":8710},{"style":91},[8711],{"type":14,"value":207},{"type":9,"tag":41,"props":8713,"children":8714},{"style":60},[8715],{"type":14,"value":212},{"type":9,"tag":41,"props":8717,"children":8718},{"style":48},[8719],{"type":14,"value":189},{"type":9,"tag":41,"props":8721,"children":8722},{"class":43,"line":219},[8723],{"type":9,"tag":41,"props":8724,"children":8725},{"emptyLinePlaceholder":147},[8726],{"type":14,"value":150},{"type":9,"tag":41,"props":8728,"children":8729},{"class":43,"line":227},[8730,8734,8738,8742,8746,8750],{"type":9,"tag":41,"props":8731,"children":8732},{"style":91},[8733],{"type":14,"value":159},{"type":9,"tag":41,"props":8735,"children":8736},{"style":167},[8737],{"type":14,"value":237},{"type":9,"tag":41,"props":8739,"children":8740},{"style":91},[8741],{"type":14,"value":207},{"type":9,"tag":41,"props":8743,"children":8744},{"style":48},[8745],{"type":14,"value":246},{"type":9,"tag":41,"props":8747,"children":8748},{"style":60},[8749],{"type":14,"value":251},{"type":9,"tag":41,"props":8751,"children":8752},{"style":48},[8753],{"type":14,"value":256},{"type":9,"tag":41,"props":8755,"children":8756},{"class":43,"line":259},[8757,8762,8767],{"type":9,"tag":41,"props":8758,"children":8759},{"style":48},[8760],{"type":14,"value":8761},"  scheduledDate: afz.",{"type":9,"tag":41,"props":8763,"children":8764},{"style":60},[8765],{"type":14,"value":8766},"isoDate",{"type":9,"tag":41,"props":8768,"children":8769},{"style":48},[8770],{"type":14,"value":189},{"type":9,"tag":41,"props":8772,"children":8773},{"class":43,"line":277},[8774,8778,8782],{"type":9,"tag":41,"props":8775,"children":8776},{"style":48},[8777],{"type":14,"value":324},{"type":9,"tag":41,"props":8779,"children":8780},{"style":60},[8781],{"type":14,"value":388},{"type":9,"tag":41,"props":8783,"children":8784},{"style":48},[8785],{"type":14,"value":256},{"type":9,"tag":41,"props":8787,"children":8788},{"class":43,"line":286},[8789,8793,8798],{"type":9,"tag":41,"props":8790,"children":8791},{"style":48},[8792],{"type":14,"value":292},{"type":9,"tag":41,"props":8794,"children":8795},{"style":71},[8796],{"type":14,"value":8797},"'计划日期'",{"type":9,"tag":41,"props":8799,"children":8800},{"style":48},[8801],{"type":14,"value":539},{"type":9,"tag":41,"props":8803,"children":8804},{"class":43,"line":300},[8805,8809,8814],{"type":9,"tag":41,"props":8806,"children":8807},{"style":48},[8808],{"type":14,"value":6839},{"type":9,"tag":41,"props":8810,"children":8811},{"style":71},[8812],{"type":14,"value":8813},"'输入 ISO 格式日期 (YYYY-MM-DD)'",{"type":9,"tag":41,"props":8815,"children":8816},{"style":48},[8817],{"type":14,"value":539},{"type":9,"tag":41,"props":8819,"children":8820},{"class":43,"line":309},[8821,8825],{"type":9,"tag":41,"props":8822,"children":8823},{"style":48},[8824],{"type":14,"value":1049},{"type":9,"tag":41,"props":8826,"children":8827},{"style":71},[8828],{"type":14,"value":8829},"'例如: 2025-12-31'\n",{"type":9,"tag":41,"props":8831,"children":8832},{"class":43,"line":318},[8833],{"type":9,"tag":41,"props":8834,"children":8835},{"style":48},[8836],{"type":14,"value":8837},"    }),\n",{"type":9,"tag":41,"props":8839,"children":8840},{"class":43,"line":378},[8841,8846,8851],{"type":9,"tag":41,"props":8842,"children":8843},{"style":48},[8844],{"type":14,"value":8845},"  scheduledTime: afz.",{"type":9,"tag":41,"props":8847,"children":8848},{"style":60},[8849],{"type":14,"value":8850},"isoTime",{"type":9,"tag":41,"props":8852,"children":8853},{"style":48},[8854],{"type":14,"value":189},{"type":9,"tag":41,"props":8856,"children":8857},{"class":43,"line":395},[8858,8862,8866],{"type":9,"tag":41,"props":8859,"children":8860},{"style":48},[8861],{"type":14,"value":324},{"type":9,"tag":41,"props":8863,"children":8864},{"style":60},[8865],{"type":14,"value":388},{"type":9,"tag":41,"props":8867,"children":8868},{"style":48},[8869],{"type":14,"value":256},{"type":9,"tag":41,"props":8871,"children":8872},{"class":43,"line":408},[8873,8877,8882],{"type":9,"tag":41,"props":8874,"children":8875},{"style":48},[8876],{"type":14,"value":292},{"type":9,"tag":41,"props":8878,"children":8879},{"style":71},[8880],{"type":14,"value":8881},"'计划时间'",{"type":9,"tag":41,"props":8883,"children":8884},{"style":48},[8885],{"type":14,"value":539},{"type":9,"tag":41,"props":8887,"children":8888},{"class":43,"line":417},[8889,8893,8898],{"type":9,"tag":41,"props":8890,"children":8891},{"style":48},[8892],{"type":14,"value":6839},{"type":9,"tag":41,"props":8894,"children":8895},{"style":71},[8896],{"type":14,"value":8897},"'输入 ISO 格式时间 (HH:MM:SS)'",{"type":9,"tag":41,"props":8899,"children":8900},{"style":48},[8901],{"type":14,"value":539},{"type":9,"tag":41,"props":8903,"children":8904},{"class":43,"line":426},[8905,8909],{"type":9,"tag":41,"props":8906,"children":8907},{"style":48},[8908],{"type":14,"value":1049},{"type":9,"tag":41,"props":8910,"children":8911},{"style":71},[8912],{"type":14,"value":8913},"'例如: 14:30:00'\n",{"type":9,"tag":41,"props":8915,"children":8916},{"class":43,"line":434},[8917],{"type":9,"tag":41,"props":8918,"children":8919},{"style":48},[8920],{"type":14,"value":8837},{"type":9,"tag":41,"props":8922,"children":8923},{"class":43,"line":505},[8924,8929,8934],{"type":9,"tag":41,"props":8925,"children":8926},{"style":48},[8927],{"type":14,"value":8928},"  createdAt: afz.",{"type":9,"tag":41,"props":8930,"children":8931},{"style":60},[8932],{"type":14,"value":8933},"isoDatetime",{"type":9,"tag":41,"props":8935,"children":8936},{"style":48},[8937],{"type":14,"value":189},{"type":9,"tag":41,"props":8939,"children":8940},{"class":43,"line":523},[8941,8945,8950],{"type":9,"tag":41,"props":8942,"children":8943},{"style":48},[8944],{"type":14,"value":324},{"type":9,"tag":41,"props":8946,"children":8947},{"style":60},[8948],{"type":14,"value":8949},"optional",{"type":9,"tag":41,"props":8951,"children":8952},{"style":48},[8953],{"type":14,"value":189},{"type":9,"tag":41,"props":8955,"children":8956},{"class":43,"line":542},[8957,8961,8965],{"type":9,"tag":41,"props":8958,"children":8959},{"style":48},[8960],{"type":14,"value":324},{"type":9,"tag":41,"props":8962,"children":8963},{"style":60},[8964],{"type":14,"value":388},{"type":9,"tag":41,"props":8966,"children":8967},{"style":48},[8968],{"type":14,"value":256},{"type":9,"tag":41,"props":8970,"children":8971},{"class":43,"line":560},[8972,8976,8981],{"type":9,"tag":41,"props":8973,"children":8974},{"style":48},[8975],{"type":14,"value":292},{"type":9,"tag":41,"props":8977,"children":8978},{"style":71},[8979],{"type":14,"value":8980},"'创建时间'",{"type":9,"tag":41,"props":8982,"children":8983},{"style":48},[8984],{"type":14,"value":539},{"type":9,"tag":41,"props":8986,"children":8987},{"class":43,"line":606},[8988,8992,8997],{"type":9,"tag":41,"props":8989,"children":8990},{"style":48},[8991],{"type":14,"value":6839},{"type":9,"tag":41,"props":8993,"children":8994},{"style":71},[8995],{"type":14,"value":8996},"'输入 ISO 8601 完整时间戳'",{"type":9,"tag":41,"props":8998,"children":8999},{"style":48},[9000],{"type":14,"value":539},{"type":9,"tag":41,"props":9002,"children":9003},{"class":43,"line":614},[9004,9008],{"type":9,"tag":41,"props":9005,"children":9006},{"style":48},[9007],{"type":14,"value":1049},{"type":9,"tag":41,"props":9009,"children":9010},{"style":71},[9011],{"type":14,"value":9012},"'例如: 2025-12-31T14:30:00Z'\n",{"type":9,"tag":41,"props":9014,"children":9015},{"class":43,"line":623},[9016],{"type":9,"tag":41,"props":9017,"children":9018},{"style":48},[9019],{"type":14,"value":414},{"type":9,"tag":41,"props":9021,"children":9022},{"class":43,"line":640},[9023],{"type":9,"tag":41,"props":9024,"children":9025},{"style":48},[9026],{"type":14,"value":423},{"type":9,"tag":41,"props":9028,"children":9029},{"class":43,"line":648},[9030],{"type":9,"tag":41,"props":9031,"children":9032},{"emptyLinePlaceholder":147},[9033],{"type":14,"value":150},{"type":9,"tag":41,"props":9035,"children":9036},{"class":43,"line":665},[9037,9041,9045,9049,9053,9057,9061,9065,9069,9073,9077,9081,9085,9089],{"type":9,"tag":41,"props":9038,"children":9039},{"style":91},[9040],{"type":14,"value":440},{"type":9,"tag":41,"props":9042,"children":9043},{"style":91},[9044],{"type":14,"value":445},{"type":9,"tag":41,"props":9046,"children":9047},{"style":60},[9048],{"type":14,"value":450},{"type":9,"tag":41,"props":9050,"children":9051},{"style":48},[9052],{"type":14,"value":334},{"type":9,"tag":41,"props":9054,"children":9055},{"style":337},[9056],{"type":14,"value":459},{"type":9,"tag":41,"props":9058,"children":9059},{"style":91},[9060],{"type":14,"value":464},{"type":9,"tag":41,"props":9062,"children":9063},{"style":60},[9064],{"type":14,"value":469},{"type":9,"tag":41,"props":9066,"children":9067},{"style":48},[9068],{"type":14,"value":51},{"type":9,"tag":41,"props":9070,"children":9071},{"style":60},[9072],{"type":14,"value":478},{"type":9,"tag":41,"props":9074,"children":9075},{"style":48},[9076],{"type":14,"value":483},{"type":9,"tag":41,"props":9078,"children":9079},{"style":60},[9080],{"type":14,"value":488},{"type":9,"tag":41,"props":9082,"children":9083},{"style":48},[9084],{"type":14,"value":51},{"type":9,"tag":41,"props":9086,"children":9087},{"style":91},[9088],{"type":14,"value":497},{"type":9,"tag":41,"props":9090,"children":9091},{"style":48},[9092],{"type":14,"value":502},{"type":9,"tag":41,"props":9094,"children":9095},{"class":43,"line":738},[9096,9100,9104],{"type":9,"tag":41,"props":9097,"children":9098},{"style":48},[9099],{"type":14,"value":511},{"type":9,"tag":41,"props":9101,"children":9102},{"style":60},[9103],{"type":14,"value":516},{"type":9,"tag":41,"props":9105,"children":9106},{"style":48},[9107],{"type":14,"value":256},{"type":9,"tag":41,"props":9109,"children":9110},{"class":43,"line":3093},[9111,9115,9119],{"type":9,"tag":41,"props":9112,"children":9113},{"style":48},[9114],{"type":14,"value":529},{"type":9,"tag":41,"props":9116,"children":9117},{"style":71},[9118],{"type":14,"value":534},{"type":9,"tag":41,"props":9120,"children":9121},{"style":48},[9122],{"type":14,"value":539},{"type":9,"tag":41,"props":9124,"children":9125},{"class":43,"line":3101},[9126,9130,9134],{"type":9,"tag":41,"props":9127,"children":9128},{"style":48},[9129],{"type":14,"value":548},{"type":9,"tag":41,"props":9131,"children":9132},{"style":71},[9133],{"type":14,"value":553},{"type":9,"tag":41,"props":9135,"children":9136},{"style":48},[9137],{"type":14,"value":539},{"type":9,"tag":41,"props":9139,"children":9140},{"class":43,"line":3117},[9141,9145,9149,9153,9157,9161,9165,9169,9173],{"type":9,"tag":41,"props":9142,"children":9143},{"style":48},[9144],{"type":14,"value":566},{"type":9,"tag":41,"props":9146,"children":9147},{"style":167},[9148],{"type":14,"value":571},{"type":9,"tag":41,"props":9150,"children":9151},{"style":48},[9152],{"type":14,"value":483},{"type":9,"tag":41,"props":9154,"children":9155},{"style":60},[9156],{"type":14,"value":580},{"type":9,"tag":41,"props":9158,"children":9159},{"style":48},[9160],{"type":14,"value":585},{"type":9,"tag":41,"props":9162,"children":9163},{"style":167},[9164],{"type":14,"value":590},{"type":9,"tag":41,"props":9166,"children":9167},{"style":48},[9168],{"type":14,"value":365},{"type":9,"tag":41,"props":9170,"children":9171},{"style":167},[9172],{"type":14,"value":599},{"type":9,"tag":41,"props":9174,"children":9175},{"style":48},[9176],{"type":14,"value":375},{"type":9,"tag":41,"props":9178,"children":9179},{"class":43,"line":3181},[9180],{"type":9,"tag":41,"props":9181,"children":9182},{"style":48},[9183],{"type":14,"value":315},{"type":9,"tag":41,"props":9185,"children":9186},{"class":43,"line":3851},[9187],{"type":9,"tag":41,"props":9188,"children":9189},{"style":48},[9190],{"type":14,"value":620},{"type":9,"tag":41,"props":9192,"children":9193},{"class":43,"line":3915},[9194,9198,9202],{"type":9,"tag":41,"props":9195,"children":9196},{"style":48},[9197],{"type":14,"value":629},{"type":9,"tag":41,"props":9199,"children":9200},{"style":54},[9201],{"type":14,"value":57},{"type":9,"tag":41,"props":9203,"children":9204},{"style":48},[9205],{"type":14,"value":84},{"type":9,"tag":41,"props":9207,"children":9209},{"class":43,"line":9208},38,[9210],{"type":9,"tag":41,"props":9211,"children":9212},{"emptyLinePlaceholder":147},[9213],{"type":14,"value":150},{"type":9,"tag":41,"props":9215,"children":9217},{"class":43,"line":9216},39,[9218,9222,9226],{"type":9,"tag":41,"props":9219,"children":9220},{"style":48},[9221],{"type":14,"value":51},{"type":9,"tag":41,"props":9223,"children":9224},{"style":54},[9225],{"type":14,"value":658},{"type":9,"tag":41,"props":9227,"children":9228},{"style":48},[9229],{"type":14,"value":84},{"type":9,"tag":41,"props":9231,"children":9233},{"class":43,"line":9232},40,[9234,9238,9242,9246,9250,9254,9258,9262,9266,9270,9274,9278,9282,9286,9290],{"type":9,"tag":41,"props":9235,"children":9236},{"style":48},[9237],{"type":14,"value":671},{"type":9,"tag":41,"props":9239,"children":9240},{"style":54},[9241],{"type":14,"value":676},{"type":9,"tag":41,"props":9243,"children":9244},{"style":48},[9245],{"type":14,"value":681},{"type":9,"tag":41,"props":9247,"children":9248},{"style":60},[9249],{"type":14,"value":686},{"type":9,"tag":41,"props":9251,"children":9252},{"style":48},[9253],{"type":14,"value":68},{"type":9,"tag":41,"props":9255,"children":9256},{"style":71},[9257],{"type":14,"value":695},{"type":9,"tag":41,"props":9259,"children":9260},{"style":48},[9261],{"type":14,"value":686},{"type":9,"tag":41,"props":9263,"children":9264},{"style":71},[9265],{"type":14,"value":695},{"type":9,"tag":41,"props":9267,"children":9268},{"style":48},[9269],{"type":14,"value":708},{"type":9,"tag":41,"props":9271,"children":9272},{"style":60},[9273],{"type":14,"value":713},{"type":9,"tag":41,"props":9275,"children":9276},{"style":48},[9277],{"type":14,"value":68},{"type":9,"tag":41,"props":9279,"children":9280},{"style":71},[9281],{"type":14,"value":695},{"type":9,"tag":41,"props":9283,"children":9284},{"style":48},[9285],{"type":14,"value":726},{"type":9,"tag":41,"props":9287,"children":9288},{"style":71},[9289],{"type":14,"value":695},{"type":9,"tag":41,"props":9291,"children":9292},{"style":48},[9293],{"type":14,"value":735},{"type":9,"tag":41,"props":9295,"children":9297},{"class":43,"line":9296},41,[9298,9302,9306],{"type":9,"tag":41,"props":9299,"children":9300},{"style":48},[9301],{"type":14,"value":629},{"type":9,"tag":41,"props":9303,"children":9304},{"style":54},[9305],{"type":14,"value":658},{"type":9,"tag":41,"props":9307,"children":9308},{"style":48},[9309],{"type":14,"value":84},{"type":9,"tag":753,"props":9311,"children":9312},{},[9313],{"type":14,"value":757},{"title":22,"searchDepth":87,"depth":87,"links":9315},[],{"code":9317,"filePath":9318,"pascalName":9319},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  count: afz.number()\n    .int('必须是整数')\n    .min(0, '不能小于 0')\n    .max(100, '不能大于 100')\n    .meta({\n      label: '数字输入',\n      placeholder: '请输入 0-100 的整数',\n      hint: '支持步长、范围限制等配置'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Ffield-types\u002FAutoFormFieldNumberInputExample.vue","AutoFormFieldNumberInputExample",{"data":9321,"body":9322,"toc":9970},{"title":22,"description":22},{"type":6,"children":9323},[9324,9966],{"type":9,"tag":26,"props":9325,"children":9326},{},[9327],{"type":9,"tag":30,"props":9328,"children":9330},{"className":32,"code":9329,"language":34,"meta":22,"style":22},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  count: afz.number()\n    .int('必须是整数')\n    .min(0, '不能小于 0')\n    .max(100, '不能大于 100')\n    .meta({\n      label: '数字输入',\n      placeholder: '请输入 0-100 的整数',\n      hint: '支持步长、范围限制等配置'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n\n",[9331],{"type":9,"tag":37,"props":9332,"children":9333},{"__ignoreMap":22},[9334,9365,9388,9411,9418,9449,9472,9479,9506,9523,9548,9581,9614,9629,9645,9661,9673,9680,9687,9694,9753,9768,9783,9798,9837,9844,9851,9866,9873,9888,9951],{"type":9,"tag":41,"props":9335,"children":9336},{"class":43,"line":44},[9337,9341,9345,9349,9353,9357,9361],{"type":9,"tag":41,"props":9338,"children":9339},{"style":48},[9340],{"type":14,"value":51},{"type":9,"tag":41,"props":9342,"children":9343},{"style":54},[9344],{"type":14,"value":57},{"type":9,"tag":41,"props":9346,"children":9347},{"style":60},[9348],{"type":14,"value":63},{"type":9,"tag":41,"props":9350,"children":9351},{"style":48},[9352],{"type":14,"value":68},{"type":9,"tag":41,"props":9354,"children":9355},{"style":71},[9356],{"type":14,"value":74},{"type":9,"tag":41,"props":9358,"children":9359},{"style":60},[9360],{"type":14,"value":79},{"type":9,"tag":41,"props":9362,"children":9363},{"style":48},[9364],{"type":14,"value":84},{"type":9,"tag":41,"props":9366,"children":9367},{"class":43,"line":87},[9368,9372,9376,9380,9384],{"type":9,"tag":41,"props":9369,"children":9370},{"style":91},[9371],{"type":14,"value":94},{"type":9,"tag":41,"props":9373,"children":9374},{"style":91},[9375],{"type":14,"value":99},{"type":9,"tag":41,"props":9377,"children":9378},{"style":48},[9379],{"type":14,"value":104},{"type":9,"tag":41,"props":9381,"children":9382},{"style":91},[9383],{"type":14,"value":109},{"type":9,"tag":41,"props":9385,"children":9386},{"style":71},[9387],{"type":14,"value":114},{"type":9,"tag":41,"props":9389,"children":9390},{"class":43,"line":117},[9391,9395,9399,9403,9407],{"type":9,"tag":41,"props":9392,"children":9393},{"style":91},[9394],{"type":14,"value":94},{"type":9,"tag":41,"props":9396,"children":9397},{"style":91},[9398],{"type":14,"value":99},{"type":9,"tag":41,"props":9400,"children":9401},{"style":48},[9402],{"type":14,"value":131},{"type":9,"tag":41,"props":9404,"children":9405},{"style":91},[9406],{"type":14,"value":109},{"type":9,"tag":41,"props":9408,"children":9409},{"style":71},[9410],{"type":14,"value":140},{"type":9,"tag":41,"props":9412,"children":9413},{"class":43,"line":143},[9414],{"type":9,"tag":41,"props":9415,"children":9416},{"emptyLinePlaceholder":147},[9417],{"type":14,"value":150},{"type":9,"tag":41,"props":9419,"children":9420},{"class":43,"line":153},[9421,9425,9429,9433,9437,9441,9445],{"type":9,"tag":41,"props":9422,"children":9423},{"style":91},[9424],{"type":14,"value":159},{"type":9,"tag":41,"props":9426,"children":9427},{"style":48},[9428],{"type":14,"value":164},{"type":9,"tag":41,"props":9430,"children":9431},{"style":167},[9432],{"type":14,"value":170},{"type":9,"tag":41,"props":9434,"children":9435},{"style":48},[9436],{"type":14,"value":175},{"type":9,"tag":41,"props":9438,"children":9439},{"style":91},[9440],{"type":14,"value":68},{"type":9,"tag":41,"props":9442,"children":9443},{"style":60},[9444],{"type":14,"value":184},{"type":9,"tag":41,"props":9446,"children":9447},{"style":48},[9448],{"type":14,"value":189},{"type":9,"tag":41,"props":9450,"children":9451},{"class":43,"line":192},[9452,9456,9460,9464,9468],{"type":9,"tag":41,"props":9453,"children":9454},{"style":91},[9455],{"type":14,"value":159},{"type":9,"tag":41,"props":9457,"children":9458},{"style":167},[9459],{"type":14,"value":202},{"type":9,"tag":41,"props":9461,"children":9462},{"style":91},[9463],{"type":14,"value":207},{"type":9,"tag":41,"props":9465,"children":9466},{"style":60},[9467],{"type":14,"value":212},{"type":9,"tag":41,"props":9469,"children":9470},{"style":48},[9471],{"type":14,"value":189},{"type":9,"tag":41,"props":9473,"children":9474},{"class":43,"line":219},[9475],{"type":9,"tag":41,"props":9476,"children":9477},{"emptyLinePlaceholder":147},[9478],{"type":14,"value":150},{"type":9,"tag":41,"props":9480,"children":9481},{"class":43,"line":227},[9482,9486,9490,9494,9498,9502],{"type":9,"tag":41,"props":9483,"children":9484},{"style":91},[9485],{"type":14,"value":159},{"type":9,"tag":41,"props":9487,"children":9488},{"style":167},[9489],{"type":14,"value":237},{"type":9,"tag":41,"props":9491,"children":9492},{"style":91},[9493],{"type":14,"value":207},{"type":9,"tag":41,"props":9495,"children":9496},{"style":48},[9497],{"type":14,"value":246},{"type":9,"tag":41,"props":9499,"children":9500},{"style":60},[9501],{"type":14,"value":251},{"type":9,"tag":41,"props":9503,"children":9504},{"style":48},[9505],{"type":14,"value":256},{"type":9,"tag":41,"props":9507,"children":9508},{"class":43,"line":259},[9509,9514,9519],{"type":9,"tag":41,"props":9510,"children":9511},{"style":48},[9512],{"type":14,"value":9513},"  count: afz.",{"type":9,"tag":41,"props":9515,"children":9516},{"style":60},[9517],{"type":14,"value":9518},"number",{"type":9,"tag":41,"props":9520,"children":9521},{"style":48},[9522],{"type":14,"value":189},{"type":9,"tag":41,"props":9524,"children":9525},{"class":43,"line":277},[9526,9530,9535,9539,9544],{"type":9,"tag":41,"props":9527,"children":9528},{"style":48},[9529],{"type":14,"value":324},{"type":9,"tag":41,"props":9531,"children":9532},{"style":60},[9533],{"type":14,"value":9534},"int",{"type":9,"tag":41,"props":9536,"children":9537},{"style":48},[9538],{"type":14,"value":334},{"type":9,"tag":41,"props":9540,"children":9541},{"style":71},[9542],{"type":14,"value":9543},"'必须是整数'",{"type":9,"tag":41,"props":9545,"children":9546},{"style":48},[9547],{"type":14,"value":375},{"type":9,"tag":41,"props":9549,"children":9550},{"class":43,"line":286},[9551,9555,9559,9563,9568,9572,9577],{"type":9,"tag":41,"props":9552,"children":9553},{"style":48},[9554],{"type":14,"value":324},{"type":9,"tag":41,"props":9556,"children":9557},{"style":60},[9558],{"type":14,"value":5538},{"type":9,"tag":41,"props":9560,"children":9561},{"style":48},[9562],{"type":14,"value":334},{"type":9,"tag":41,"props":9564,"children":9565},{"style":167},[9566],{"type":14,"value":9567},"0",{"type":9,"tag":41,"props":9569,"children":9570},{"style":48},[9571],{"type":14,"value":365},{"type":9,"tag":41,"props":9573,"children":9574},{"style":71},[9575],{"type":14,"value":9576},"'不能小于 0'",{"type":9,"tag":41,"props":9578,"children":9579},{"style":48},[9580],{"type":14,"value":375},{"type":9,"tag":41,"props":9582,"children":9583},{"class":43,"line":300},[9584,9588,9592,9596,9601,9605,9610],{"type":9,"tag":41,"props":9585,"children":9586},{"style":48},[9587],{"type":14,"value":324},{"type":9,"tag":41,"props":9589,"children":9590},{"style":60},[9591],{"type":14,"value":5571},{"type":9,"tag":41,"props":9593,"children":9594},{"style":48},[9595],{"type":14,"value":334},{"type":9,"tag":41,"props":9597,"children":9598},{"style":167},[9599],{"type":14,"value":9600},"100",{"type":9,"tag":41,"props":9602,"children":9603},{"style":48},[9604],{"type":14,"value":365},{"type":9,"tag":41,"props":9606,"children":9607},{"style":71},[9608],{"type":14,"value":9609},"'不能大于 100'",{"type":9,"tag":41,"props":9611,"children":9612},{"style":48},[9613],{"type":14,"value":375},{"type":9,"tag":41,"props":9615,"children":9616},{"class":43,"line":309},[9617,9621,9625],{"type":9,"tag":41,"props":9618,"children":9619},{"style":48},[9620],{"type":14,"value":324},{"type":9,"tag":41,"props":9622,"children":9623},{"style":60},[9624],{"type":14,"value":388},{"type":9,"tag":41,"props":9626,"children":9627},{"style":48},[9628],{"type":14,"value":256},{"type":9,"tag":41,"props":9630,"children":9631},{"class":43,"line":318},[9632,9636,9641],{"type":9,"tag":41,"props":9633,"children":9634},{"style":48},[9635],{"type":14,"value":292},{"type":9,"tag":41,"props":9637,"children":9638},{"style":71},[9639],{"type":14,"value":9640},"'数字输入'",{"type":9,"tag":41,"props":9642,"children":9643},{"style":48},[9644],{"type":14,"value":539},{"type":9,"tag":41,"props":9646,"children":9647},{"class":43,"line":378},[9648,9652,9657],{"type":9,"tag":41,"props":9649,"children":9650},{"style":48},[9651],{"type":14,"value":4231},{"type":9,"tag":41,"props":9653,"children":9654},{"style":71},[9655],{"type":14,"value":9656},"'请输入 0-100 的整数'",{"type":9,"tag":41,"props":9658,"children":9659},{"style":48},[9660],{"type":14,"value":539},{"type":9,"tag":41,"props":9662,"children":9663},{"class":43,"line":395},[9664,9668],{"type":9,"tag":41,"props":9665,"children":9666},{"style":48},[9667],{"type":14,"value":1049},{"type":9,"tag":41,"props":9669,"children":9670},{"style":71},[9671],{"type":14,"value":9672},"'支持步长、范围限制等配置'\n",{"type":9,"tag":41,"props":9674,"children":9675},{"class":43,"line":408},[9676],{"type":9,"tag":41,"props":9677,"children":9678},{"style":48},[9679],{"type":14,"value":414},{"type":9,"tag":41,"props":9681,"children":9682},{"class":43,"line":417},[9683],{"type":9,"tag":41,"props":9684,"children":9685},{"style":48},[9686],{"type":14,"value":423},{"type":9,"tag":41,"props":9688,"children":9689},{"class":43,"line":426},[9690],{"type":9,"tag":41,"props":9691,"children":9692},{"emptyLinePlaceholder":147},[9693],{"type":14,"value":150},{"type":9,"tag":41,"props":9695,"children":9696},{"class":43,"line":434},[9697,9701,9705,9709,9713,9717,9721,9725,9729,9733,9737,9741,9745,9749],{"type":9,"tag":41,"props":9698,"children":9699},{"style":91},[9700],{"type":14,"value":440},{"type":9,"tag":41,"props":9702,"children":9703},{"style":91},[9704],{"type":14,"value":445},{"type":9,"tag":41,"props":9706,"children":9707},{"style":60},[9708],{"type":14,"value":450},{"type":9,"tag":41,"props":9710,"children":9711},{"style":48},[9712],{"type":14,"value":334},{"type":9,"tag":41,"props":9714,"children":9715},{"style":337},[9716],{"type":14,"value":459},{"type":9,"tag":41,"props":9718,"children":9719},{"style":91},[9720],{"type":14,"value":464},{"type":9,"tag":41,"props":9722,"children":9723},{"style":60},[9724],{"type":14,"value":469},{"type":9,"tag":41,"props":9726,"children":9727},{"style":48},[9728],{"type":14,"value":51},{"type":9,"tag":41,"props":9730,"children":9731},{"style":60},[9732],{"type":14,"value":478},{"type":9,"tag":41,"props":9734,"children":9735},{"style":48},[9736],{"type":14,"value":483},{"type":9,"tag":41,"props":9738,"children":9739},{"style":60},[9740],{"type":14,"value":488},{"type":9,"tag":41,"props":9742,"children":9743},{"style":48},[9744],{"type":14,"value":51},{"type":9,"tag":41,"props":9746,"children":9747},{"style":91},[9748],{"type":14,"value":497},{"type":9,"tag":41,"props":9750,"children":9751},{"style":48},[9752],{"type":14,"value":502},{"type":9,"tag":41,"props":9754,"children":9755},{"class":43,"line":505},[9756,9760,9764],{"type":9,"tag":41,"props":9757,"children":9758},{"style":48},[9759],{"type":14,"value":511},{"type":9,"tag":41,"props":9761,"children":9762},{"style":60},[9763],{"type":14,"value":516},{"type":9,"tag":41,"props":9765,"children":9766},{"style":48},[9767],{"type":14,"value":256},{"type":9,"tag":41,"props":9769,"children":9770},{"class":43,"line":523},[9771,9775,9779],{"type":9,"tag":41,"props":9772,"children":9773},{"style":48},[9774],{"type":14,"value":529},{"type":9,"tag":41,"props":9776,"children":9777},{"style":71},[9778],{"type":14,"value":534},{"type":9,"tag":41,"props":9780,"children":9781},{"style":48},[9782],{"type":14,"value":539},{"type":9,"tag":41,"props":9784,"children":9785},{"class":43,"line":542},[9786,9790,9794],{"type":9,"tag":41,"props":9787,"children":9788},{"style":48},[9789],{"type":14,"value":548},{"type":9,"tag":41,"props":9791,"children":9792},{"style":71},[9793],{"type":14,"value":553},{"type":9,"tag":41,"props":9795,"children":9796},{"style":48},[9797],{"type":14,"value":539},{"type":9,"tag":41,"props":9799,"children":9800},{"class":43,"line":560},[9801,9805,9809,9813,9817,9821,9825,9829,9833],{"type":9,"tag":41,"props":9802,"children":9803},{"style":48},[9804],{"type":14,"value":566},{"type":9,"tag":41,"props":9806,"children":9807},{"style":167},[9808],{"type":14,"value":571},{"type":9,"tag":41,"props":9810,"children":9811},{"style":48},[9812],{"type":14,"value":483},{"type":9,"tag":41,"props":9814,"children":9815},{"style":60},[9816],{"type":14,"value":580},{"type":9,"tag":41,"props":9818,"children":9819},{"style":48},[9820],{"type":14,"value":585},{"type":9,"tag":41,"props":9822,"children":9823},{"style":167},[9824],{"type":14,"value":590},{"type":9,"tag":41,"props":9826,"children":9827},{"style":48},[9828],{"type":14,"value":365},{"type":9,"tag":41,"props":9830,"children":9831},{"style":167},[9832],{"type":14,"value":599},{"type":9,"tag":41,"props":9834,"children":9835},{"style":48},[9836],{"type":14,"value":375},{"type":9,"tag":41,"props":9838,"children":9839},{"class":43,"line":606},[9840],{"type":9,"tag":41,"props":9841,"children":9842},{"style":48},[9843],{"type":14,"value":315},{"type":9,"tag":41,"props":9845,"children":9846},{"class":43,"line":614},[9847],{"type":9,"tag":41,"props":9848,"children":9849},{"style":48},[9850],{"type":14,"value":620},{"type":9,"tag":41,"props":9852,"children":9853},{"class":43,"line":623},[9854,9858,9862],{"type":9,"tag":41,"props":9855,"children":9856},{"style":48},[9857],{"type":14,"value":629},{"type":9,"tag":41,"props":9859,"children":9860},{"style":54},[9861],{"type":14,"value":57},{"type":9,"tag":41,"props":9863,"children":9864},{"style":48},[9865],{"type":14,"value":84},{"type":9,"tag":41,"props":9867,"children":9868},{"class":43,"line":640},[9869],{"type":9,"tag":41,"props":9870,"children":9871},{"emptyLinePlaceholder":147},[9872],{"type":14,"value":150},{"type":9,"tag":41,"props":9874,"children":9875},{"class":43,"line":648},[9876,9880,9884],{"type":9,"tag":41,"props":9877,"children":9878},{"style":48},[9879],{"type":14,"value":51},{"type":9,"tag":41,"props":9881,"children":9882},{"style":54},[9883],{"type":14,"value":658},{"type":9,"tag":41,"props":9885,"children":9886},{"style":48},[9887],{"type":14,"value":84},{"type":9,"tag":41,"props":9889,"children":9890},{"class":43,"line":665},[9891,9895,9899,9903,9907,9911,9915,9919,9923,9927,9931,9935,9939,9943,9947],{"type":9,"tag":41,"props":9892,"children":9893},{"style":48},[9894],{"type":14,"value":671},{"type":9,"tag":41,"props":9896,"children":9897},{"style":54},[9898],{"type":14,"value":676},{"type":9,"tag":41,"props":9900,"children":9901},{"style":48},[9902],{"type":14,"value":681},{"type":9,"tag":41,"props":9904,"children":9905},{"style":60},[9906],{"type":14,"value":686},{"type":9,"tag":41,"props":9908,"children":9909},{"style":48},[9910],{"type":14,"value":68},{"type":9,"tag":41,"props":9912,"children":9913},{"style":71},[9914],{"type":14,"value":695},{"type":9,"tag":41,"props":9916,"children":9917},{"style":48},[9918],{"type":14,"value":686},{"type":9,"tag":41,"props":9920,"children":9921},{"style":71},[9922],{"type":14,"value":695},{"type":9,"tag":41,"props":9924,"children":9925},{"style":48},[9926],{"type":14,"value":708},{"type":9,"tag":41,"props":9928,"children":9929},{"style":60},[9930],{"type":14,"value":713},{"type":9,"tag":41,"props":9932,"children":9933},{"style":48},[9934],{"type":14,"value":68},{"type":9,"tag":41,"props":9936,"children":9937},{"style":71},[9938],{"type":14,"value":695},{"type":9,"tag":41,"props":9940,"children":9941},{"style":48},[9942],{"type":14,"value":726},{"type":9,"tag":41,"props":9944,"children":9945},{"style":71},[9946],{"type":14,"value":695},{"type":9,"tag":41,"props":9948,"children":9949},{"style":48},[9950],{"type":14,"value":735},{"type":9,"tag":41,"props":9952,"children":9953},{"class":43,"line":738},[9954,9958,9962],{"type":9,"tag":41,"props":9955,"children":9956},{"style":48},[9957],{"type":14,"value":629},{"type":9,"tag":41,"props":9959,"children":9960},{"style":54},[9961],{"type":14,"value":658},{"type":9,"tag":41,"props":9963,"children":9964},{"style":48},[9965],{"type":14,"value":84},{"type":9,"tag":753,"props":9967,"children":9968},{},[9969],{"type":14,"value":757},{"title":22,"searchDepth":87,"depth":87,"links":9971},[],{"code":9973,"filePath":9974,"pascalName":9975},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\nimport { UInputRating } from '#components'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  rating: afz.number({\n    component: UInputRating,\n    controlProps: {\n      step: 0.5,\n      length: 10\n    }\n  })\n    .min(0, '评分不能小于 0')\n    .max(10, '评分不能大于 10')\n    .meta({\n      label: '评分',\n      hint: '支持半星评分'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Ffield-types\u002FAutoFormFieldNumberInputRatingExample.vue","AutoFormFieldNumberInputRatingExample",{"data":9977,"body":9978,"toc":10663},{"title":22,"description":22},{"type":6,"children":9979},[9980,10659],{"type":9,"tag":26,"props":9981,"children":9982},{},[9983],{"type":9,"tag":30,"props":9984,"children":9986},{"className":32,"code":9985,"language":34,"meta":22,"style":22},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\nimport { UInputRating } from '#components'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  rating: afz.number({\n    component: UInputRating,\n    controlProps: {\n      step: 0.5,\n      length: 10\n    }\n  })\n    .min(0, '评分不能小于 0')\n    .max(10, '评分不能大于 10')\n    .meta({\n      label: '评分',\n      hint: '支持半星评分'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n\n",[9987],{"type":9,"tag":37,"props":9988,"children":9989},{"__ignoreMap":22},[9990,10021,10044,10067,10088,10095,10126,10149,10156,10183,10199,10207,10214,10231,10244,10251,10258,10290,10323,10338,10354,10366,10373,10380,10387,10446,10461,10476,10491,10530,10537,10544,10559,10566,10581,10644],{"type":9,"tag":41,"props":9991,"children":9992},{"class":43,"line":44},[9993,9997,10001,10005,10009,10013,10017],{"type":9,"tag":41,"props":9994,"children":9995},{"style":48},[9996],{"type":14,"value":51},{"type":9,"tag":41,"props":9998,"children":9999},{"style":54},[10000],{"type":14,"value":57},{"type":9,"tag":41,"props":10002,"children":10003},{"style":60},[10004],{"type":14,"value":63},{"type":9,"tag":41,"props":10006,"children":10007},{"style":48},[10008],{"type":14,"value":68},{"type":9,"tag":41,"props":10010,"children":10011},{"style":71},[10012],{"type":14,"value":74},{"type":9,"tag":41,"props":10014,"children":10015},{"style":60},[10016],{"type":14,"value":79},{"type":9,"tag":41,"props":10018,"children":10019},{"style":48},[10020],{"type":14,"value":84},{"type":9,"tag":41,"props":10022,"children":10023},{"class":43,"line":87},[10024,10028,10032,10036,10040],{"type":9,"tag":41,"props":10025,"children":10026},{"style":91},[10027],{"type":14,"value":94},{"type":9,"tag":41,"props":10029,"children":10030},{"style":91},[10031],{"type":14,"value":99},{"type":9,"tag":41,"props":10033,"children":10034},{"style":48},[10035],{"type":14,"value":104},{"type":9,"tag":41,"props":10037,"children":10038},{"style":91},[10039],{"type":14,"value":109},{"type":9,"tag":41,"props":10041,"children":10042},{"style":71},[10043],{"type":14,"value":114},{"type":9,"tag":41,"props":10045,"children":10046},{"class":43,"line":117},[10047,10051,10055,10059,10063],{"type":9,"tag":41,"props":10048,"children":10049},{"style":91},[10050],{"type":14,"value":94},{"type":9,"tag":41,"props":10052,"children":10053},{"style":91},[10054],{"type":14,"value":99},{"type":9,"tag":41,"props":10056,"children":10057},{"style":48},[10058],{"type":14,"value":131},{"type":9,"tag":41,"props":10060,"children":10061},{"style":91},[10062],{"type":14,"value":109},{"type":9,"tag":41,"props":10064,"children":10065},{"style":71},[10066],{"type":14,"value":140},{"type":9,"tag":41,"props":10068,"children":10069},{"class":43,"line":143},[10070,10074,10079,10083],{"type":9,"tag":41,"props":10071,"children":10072},{"style":91},[10073],{"type":14,"value":94},{"type":9,"tag":41,"props":10075,"children":10076},{"style":48},[10077],{"type":14,"value":10078}," { UInputRating } ",{"type":9,"tag":41,"props":10080,"children":10081},{"style":91},[10082],{"type":14,"value":109},{"type":9,"tag":41,"props":10084,"children":10085},{"style":71},[10086],{"type":14,"value":10087}," '#components'\n",{"type":9,"tag":41,"props":10089,"children":10090},{"class":43,"line":153},[10091],{"type":9,"tag":41,"props":10092,"children":10093},{"emptyLinePlaceholder":147},[10094],{"type":14,"value":150},{"type":9,"tag":41,"props":10096,"children":10097},{"class":43,"line":192},[10098,10102,10106,10110,10114,10118,10122],{"type":9,"tag":41,"props":10099,"children":10100},{"style":91},[10101],{"type":14,"value":159},{"type":9,"tag":41,"props":10103,"children":10104},{"style":48},[10105],{"type":14,"value":164},{"type":9,"tag":41,"props":10107,"children":10108},{"style":167},[10109],{"type":14,"value":170},{"type":9,"tag":41,"props":10111,"children":10112},{"style":48},[10113],{"type":14,"value":175},{"type":9,"tag":41,"props":10115,"children":10116},{"style":91},[10117],{"type":14,"value":68},{"type":9,"tag":41,"props":10119,"children":10120},{"style":60},[10121],{"type":14,"value":184},{"type":9,"tag":41,"props":10123,"children":10124},{"style":48},[10125],{"type":14,"value":189},{"type":9,"tag":41,"props":10127,"children":10128},{"class":43,"line":219},[10129,10133,10137,10141,10145],{"type":9,"tag":41,"props":10130,"children":10131},{"style":91},[10132],{"type":14,"value":159},{"type":9,"tag":41,"props":10134,"children":10135},{"style":167},[10136],{"type":14,"value":202},{"type":9,"tag":41,"props":10138,"children":10139},{"style":91},[10140],{"type":14,"value":207},{"type":9,"tag":41,"props":10142,"children":10143},{"style":60},[10144],{"type":14,"value":212},{"type":9,"tag":41,"props":10146,"children":10147},{"style":48},[10148],{"type":14,"value":189},{"type":9,"tag":41,"props":10150,"children":10151},{"class":43,"line":227},[10152],{"type":9,"tag":41,"props":10153,"children":10154},{"emptyLinePlaceholder":147},[10155],{"type":14,"value":150},{"type":9,"tag":41,"props":10157,"children":10158},{"class":43,"line":259},[10159,10163,10167,10171,10175,10179],{"type":9,"tag":41,"props":10160,"children":10161},{"style":91},[10162],{"type":14,"value":159},{"type":9,"tag":41,"props":10164,"children":10165},{"style":167},[10166],{"type":14,"value":237},{"type":9,"tag":41,"props":10168,"children":10169},{"style":91},[10170],{"type":14,"value":207},{"type":9,"tag":41,"props":10172,"children":10173},{"style":48},[10174],{"type":14,"value":246},{"type":9,"tag":41,"props":10176,"children":10177},{"style":60},[10178],{"type":14,"value":251},{"type":9,"tag":41,"props":10180,"children":10181},{"style":48},[10182],{"type":14,"value":256},{"type":9,"tag":41,"props":10184,"children":10185},{"class":43,"line":277},[10186,10191,10195],{"type":9,"tag":41,"props":10187,"children":10188},{"style":48},[10189],{"type":14,"value":10190},"  rating: afz.",{"type":9,"tag":41,"props":10192,"children":10193},{"style":60},[10194],{"type":14,"value":9518},{"type":9,"tag":41,"props":10196,"children":10197},{"style":48},[10198],{"type":14,"value":256},{"type":9,"tag":41,"props":10200,"children":10201},{"class":43,"line":286},[10202],{"type":9,"tag":41,"props":10203,"children":10204},{"style":48},[10205],{"type":14,"value":10206},"    component: UInputRating,\n",{"type":9,"tag":41,"props":10208,"children":10209},{"class":43,"line":300},[10210],{"type":9,"tag":41,"props":10211,"children":10212},{"style":48},[10213],{"type":14,"value":283},{"type":9,"tag":41,"props":10215,"children":10216},{"class":43,"line":309},[10217,10222,10227],{"type":9,"tag":41,"props":10218,"children":10219},{"style":48},[10220],{"type":14,"value":10221},"      step: ",{"type":9,"tag":41,"props":10223,"children":10224},{"style":167},[10225],{"type":14,"value":10226},"0.5",{"type":9,"tag":41,"props":10228,"children":10229},{"style":48},[10230],{"type":14,"value":539},{"type":9,"tag":41,"props":10232,"children":10233},{"class":43,"line":318},[10234,10239],{"type":9,"tag":41,"props":10235,"children":10236},{"style":48},[10237],{"type":14,"value":10238},"      length: ",{"type":9,"tag":41,"props":10240,"children":10241},{"style":167},[10242],{"type":14,"value":10243},"10\n",{"type":9,"tag":41,"props":10245,"children":10246},{"class":43,"line":378},[10247],{"type":9,"tag":41,"props":10248,"children":10249},{"style":48},[10250],{"type":14,"value":306},{"type":9,"tag":41,"props":10252,"children":10253},{"class":43,"line":395},[10254],{"type":9,"tag":41,"props":10255,"children":10256},{"style":48},[10257],{"type":14,"value":315},{"type":9,"tag":41,"props":10259,"children":10260},{"class":43,"line":408},[10261,10265,10269,10273,10277,10281,10286],{"type":9,"tag":41,"props":10262,"children":10263},{"style":48},[10264],{"type":14,"value":324},{"type":9,"tag":41,"props":10266,"children":10267},{"style":60},[10268],{"type":14,"value":5538},{"type":9,"tag":41,"props":10270,"children":10271},{"style":48},[10272],{"type":14,"value":334},{"type":9,"tag":41,"props":10274,"children":10275},{"style":167},[10276],{"type":14,"value":9567},{"type":9,"tag":41,"props":10278,"children":10279},{"style":48},[10280],{"type":14,"value":365},{"type":9,"tag":41,"props":10282,"children":10283},{"style":71},[10284],{"type":14,"value":10285},"'评分不能小于 0'",{"type":9,"tag":41,"props":10287,"children":10288},{"style":48},[10289],{"type":14,"value":375},{"type":9,"tag":41,"props":10291,"children":10292},{"class":43,"line":417},[10293,10297,10301,10305,10310,10314,10319],{"type":9,"tag":41,"props":10294,"children":10295},{"style":48},[10296],{"type":14,"value":324},{"type":9,"tag":41,"props":10298,"children":10299},{"style":60},[10300],{"type":14,"value":5571},{"type":9,"tag":41,"props":10302,"children":10303},{"style":48},[10304],{"type":14,"value":334},{"type":9,"tag":41,"props":10306,"children":10307},{"style":167},[10308],{"type":14,"value":10309},"10",{"type":9,"tag":41,"props":10311,"children":10312},{"style":48},[10313],{"type":14,"value":365},{"type":9,"tag":41,"props":10315,"children":10316},{"style":71},[10317],{"type":14,"value":10318},"'评分不能大于 10'",{"type":9,"tag":41,"props":10320,"children":10321},{"style":48},[10322],{"type":14,"value":375},{"type":9,"tag":41,"props":10324,"children":10325},{"class":43,"line":426},[10326,10330,10334],{"type":9,"tag":41,"props":10327,"children":10328},{"style":48},[10329],{"type":14,"value":324},{"type":9,"tag":41,"props":10331,"children":10332},{"style":60},[10333],{"type":14,"value":388},{"type":9,"tag":41,"props":10335,"children":10336},{"style":48},[10337],{"type":14,"value":256},{"type":9,"tag":41,"props":10339,"children":10340},{"class":43,"line":434},[10341,10345,10350],{"type":9,"tag":41,"props":10342,"children":10343},{"style":48},[10344],{"type":14,"value":292},{"type":9,"tag":41,"props":10346,"children":10347},{"style":71},[10348],{"type":14,"value":10349},"'评分'",{"type":9,"tag":41,"props":10351,"children":10352},{"style":48},[10353],{"type":14,"value":539},{"type":9,"tag":41,"props":10355,"children":10356},{"class":43,"line":505},[10357,10361],{"type":9,"tag":41,"props":10358,"children":10359},{"style":48},[10360],{"type":14,"value":1049},{"type":9,"tag":41,"props":10362,"children":10363},{"style":71},[10364],{"type":14,"value":10365},"'支持半星评分'\n",{"type":9,"tag":41,"props":10367,"children":10368},{"class":43,"line":523},[10369],{"type":9,"tag":41,"props":10370,"children":10371},{"style":48},[10372],{"type":14,"value":414},{"type":9,"tag":41,"props":10374,"children":10375},{"class":43,"line":542},[10376],{"type":9,"tag":41,"props":10377,"children":10378},{"style":48},[10379],{"type":14,"value":423},{"type":9,"tag":41,"props":10381,"children":10382},{"class":43,"line":560},[10383],{"type":9,"tag":41,"props":10384,"children":10385},{"emptyLinePlaceholder":147},[10386],{"type":14,"value":150},{"type":9,"tag":41,"props":10388,"children":10389},{"class":43,"line":606},[10390,10394,10398,10402,10406,10410,10414,10418,10422,10426,10430,10434,10438,10442],{"type":9,"tag":41,"props":10391,"children":10392},{"style":91},[10393],{"type":14,"value":440},{"type":9,"tag":41,"props":10395,"children":10396},{"style":91},[10397],{"type":14,"value":445},{"type":9,"tag":41,"props":10399,"children":10400},{"style":60},[10401],{"type":14,"value":450},{"type":9,"tag":41,"props":10403,"children":10404},{"style":48},[10405],{"type":14,"value":334},{"type":9,"tag":41,"props":10407,"children":10408},{"style":337},[10409],{"type":14,"value":459},{"type":9,"tag":41,"props":10411,"children":10412},{"style":91},[10413],{"type":14,"value":464},{"type":9,"tag":41,"props":10415,"children":10416},{"style":60},[10417],{"type":14,"value":469},{"type":9,"tag":41,"props":10419,"children":10420},{"style":48},[10421],{"type":14,"value":51},{"type":9,"tag":41,"props":10423,"children":10424},{"style":60},[10425],{"type":14,"value":478},{"type":9,"tag":41,"props":10427,"children":10428},{"style":48},[10429],{"type":14,"value":483},{"type":9,"tag":41,"props":10431,"children":10432},{"style":60},[10433],{"type":14,"value":488},{"type":9,"tag":41,"props":10435,"children":10436},{"style":48},[10437],{"type":14,"value":51},{"type":9,"tag":41,"props":10439,"children":10440},{"style":91},[10441],{"type":14,"value":497},{"type":9,"tag":41,"props":10443,"children":10444},{"style":48},[10445],{"type":14,"value":502},{"type":9,"tag":41,"props":10447,"children":10448},{"class":43,"line":614},[10449,10453,10457],{"type":9,"tag":41,"props":10450,"children":10451},{"style":48},[10452],{"type":14,"value":511},{"type":9,"tag":41,"props":10454,"children":10455},{"style":60},[10456],{"type":14,"value":516},{"type":9,"tag":41,"props":10458,"children":10459},{"style":48},[10460],{"type":14,"value":256},{"type":9,"tag":41,"props":10462,"children":10463},{"class":43,"line":623},[10464,10468,10472],{"type":9,"tag":41,"props":10465,"children":10466},{"style":48},[10467],{"type":14,"value":529},{"type":9,"tag":41,"props":10469,"children":10470},{"style":71},[10471],{"type":14,"value":534},{"type":9,"tag":41,"props":10473,"children":10474},{"style":48},[10475],{"type":14,"value":539},{"type":9,"tag":41,"props":10477,"children":10478},{"class":43,"line":640},[10479,10483,10487],{"type":9,"tag":41,"props":10480,"children":10481},{"style":48},[10482],{"type":14,"value":548},{"type":9,"tag":41,"props":10484,"children":10485},{"style":71},[10486],{"type":14,"value":553},{"type":9,"tag":41,"props":10488,"children":10489},{"style":48},[10490],{"type":14,"value":539},{"type":9,"tag":41,"props":10492,"children":10493},{"class":43,"line":648},[10494,10498,10502,10506,10510,10514,10518,10522,10526],{"type":9,"tag":41,"props":10495,"children":10496},{"style":48},[10497],{"type":14,"value":566},{"type":9,"tag":41,"props":10499,"children":10500},{"style":167},[10501],{"type":14,"value":571},{"type":9,"tag":41,"props":10503,"children":10504},{"style":48},[10505],{"type":14,"value":483},{"type":9,"tag":41,"props":10507,"children":10508},{"style":60},[10509],{"type":14,"value":580},{"type":9,"tag":41,"props":10511,"children":10512},{"style":48},[10513],{"type":14,"value":585},{"type":9,"tag":41,"props":10515,"children":10516},{"style":167},[10517],{"type":14,"value":590},{"type":9,"tag":41,"props":10519,"children":10520},{"style":48},[10521],{"type":14,"value":365},{"type":9,"tag":41,"props":10523,"children":10524},{"style":167},[10525],{"type":14,"value":599},{"type":9,"tag":41,"props":10527,"children":10528},{"style":48},[10529],{"type":14,"value":375},{"type":9,"tag":41,"props":10531,"children":10532},{"class":43,"line":665},[10533],{"type":9,"tag":41,"props":10534,"children":10535},{"style":48},[10536],{"type":14,"value":315},{"type":9,"tag":41,"props":10538,"children":10539},{"class":43,"line":738},[10540],{"type":9,"tag":41,"props":10541,"children":10542},{"style":48},[10543],{"type":14,"value":620},{"type":9,"tag":41,"props":10545,"children":10546},{"class":43,"line":3093},[10547,10551,10555],{"type":9,"tag":41,"props":10548,"children":10549},{"style":48},[10550],{"type":14,"value":629},{"type":9,"tag":41,"props":10552,"children":10553},{"style":54},[10554],{"type":14,"value":57},{"type":9,"tag":41,"props":10556,"children":10557},{"style":48},[10558],{"type":14,"value":84},{"type":9,"tag":41,"props":10560,"children":10561},{"class":43,"line":3101},[10562],{"type":9,"tag":41,"props":10563,"children":10564},{"emptyLinePlaceholder":147},[10565],{"type":14,"value":150},{"type":9,"tag":41,"props":10567,"children":10568},{"class":43,"line":3117},[10569,10573,10577],{"type":9,"tag":41,"props":10570,"children":10571},{"style":48},[10572],{"type":14,"value":51},{"type":9,"tag":41,"props":10574,"children":10575},{"style":54},[10576],{"type":14,"value":658},{"type":9,"tag":41,"props":10578,"children":10579},{"style":48},[10580],{"type":14,"value":84},{"type":9,"tag":41,"props":10582,"children":10583},{"class":43,"line":3181},[10584,10588,10592,10596,10600,10604,10608,10612,10616,10620,10624,10628,10632,10636,10640],{"type":9,"tag":41,"props":10585,"children":10586},{"style":48},[10587],{"type":14,"value":671},{"type":9,"tag":41,"props":10589,"children":10590},{"style":54},[10591],{"type":14,"value":676},{"type":9,"tag":41,"props":10593,"children":10594},{"style":48},[10595],{"type":14,"value":681},{"type":9,"tag":41,"props":10597,"children":10598},{"style":60},[10599],{"type":14,"value":686},{"type":9,"tag":41,"props":10601,"children":10602},{"style":48},[10603],{"type":14,"value":68},{"type":9,"tag":41,"props":10605,"children":10606},{"style":71},[10607],{"type":14,"value":695},{"type":9,"tag":41,"props":10609,"children":10610},{"style":48},[10611],{"type":14,"value":686},{"type":9,"tag":41,"props":10613,"children":10614},{"style":71},[10615],{"type":14,"value":695},{"type":9,"tag":41,"props":10617,"children":10618},{"style":48},[10619],{"type":14,"value":708},{"type":9,"tag":41,"props":10621,"children":10622},{"style":60},[10623],{"type":14,"value":713},{"type":9,"tag":41,"props":10625,"children":10626},{"style":48},[10627],{"type":14,"value":68},{"type":9,"tag":41,"props":10629,"children":10630},{"style":71},[10631],{"type":14,"value":695},{"type":9,"tag":41,"props":10633,"children":10634},{"style":48},[10635],{"type":14,"value":726},{"type":9,"tag":41,"props":10637,"children":10638},{"style":71},[10639],{"type":14,"value":695},{"type":9,"tag":41,"props":10641,"children":10642},{"style":48},[10643],{"type":14,"value":735},{"type":9,"tag":41,"props":10645,"children":10646},{"class":43,"line":3851},[10647,10651,10655],{"type":9,"tag":41,"props":10648,"children":10649},{"style":48},[10650],{"type":14,"value":629},{"type":9,"tag":41,"props":10652,"children":10653},{"style":54},[10654],{"type":14,"value":658},{"type":9,"tag":41,"props":10656,"children":10657},{"style":48},[10658],{"type":14,"value":84},{"type":9,"tag":753,"props":10660,"children":10661},{},[10662],{"type":14,"value":757},{"title":22,"searchDepth":87,"depth":87,"links":10664},[],{"code":10666,"filePath":10667,"pascalName":10668},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  volume: afz.number({\n    type: 'slider',\n    controlProps: {\n      min: 0,\n      max: 100,\n      step: 5\n    }\n  })\n    .default(50)\n    .meta({\n      label: '音量滑块',\n      hint: '拖动滑块调整数值，步长为 5'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Ffield-types\u002FAutoFormFieldNumberSliderExample.vue","AutoFormFieldNumberSliderExample",{"data":10670,"body":10671,"toc":11316},{"title":22,"description":22},{"type":6,"children":10672},[10673,11312],{"type":9,"tag":26,"props":10674,"children":10675},{},[10676],{"type":9,"tag":30,"props":10677,"children":10679},{"className":32,"code":10678,"language":34,"meta":22,"style":22},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  volume: afz.number({\n    type: 'slider',\n    controlProps: {\n      min: 0,\n      max: 100,\n      step: 5\n    }\n  })\n    .default(50)\n    .meta({\n      label: '音量滑块',\n      hint: '拖动滑块调整数值，步长为 5'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n\n",[10680],{"type":9,"tag":37,"props":10681,"children":10682},{"__ignoreMap":22},[10683,10714,10737,10760,10767,10798,10821,10828,10855,10871,10887,10894,10910,10926,10938,10945,10952,10976,10991,11007,11019,11026,11033,11040,11099,11114,11129,11144,11183,11190,11197,11212,11219,11234,11297],{"type":9,"tag":41,"props":10684,"children":10685},{"class":43,"line":44},[10686,10690,10694,10698,10702,10706,10710],{"type":9,"tag":41,"props":10687,"children":10688},{"style":48},[10689],{"type":14,"value":51},{"type":9,"tag":41,"props":10691,"children":10692},{"style":54},[10693],{"type":14,"value":57},{"type":9,"tag":41,"props":10695,"children":10696},{"style":60},[10697],{"type":14,"value":63},{"type":9,"tag":41,"props":10699,"children":10700},{"style":48},[10701],{"type":14,"value":68},{"type":9,"tag":41,"props":10703,"children":10704},{"style":71},[10705],{"type":14,"value":74},{"type":9,"tag":41,"props":10707,"children":10708},{"style":60},[10709],{"type":14,"value":79},{"type":9,"tag":41,"props":10711,"children":10712},{"style":48},[10713],{"type":14,"value":84},{"type":9,"tag":41,"props":10715,"children":10716},{"class":43,"line":87},[10717,10721,10725,10729,10733],{"type":9,"tag":41,"props":10718,"children":10719},{"style":91},[10720],{"type":14,"value":94},{"type":9,"tag":41,"props":10722,"children":10723},{"style":91},[10724],{"type":14,"value":99},{"type":9,"tag":41,"props":10726,"children":10727},{"style":48},[10728],{"type":14,"value":104},{"type":9,"tag":41,"props":10730,"children":10731},{"style":91},[10732],{"type":14,"value":109},{"type":9,"tag":41,"props":10734,"children":10735},{"style":71},[10736],{"type":14,"value":114},{"type":9,"tag":41,"props":10738,"children":10739},{"class":43,"line":117},[10740,10744,10748,10752,10756],{"type":9,"tag":41,"props":10741,"children":10742},{"style":91},[10743],{"type":14,"value":94},{"type":9,"tag":41,"props":10745,"children":10746},{"style":91},[10747],{"type":14,"value":99},{"type":9,"tag":41,"props":10749,"children":10750},{"style":48},[10751],{"type":14,"value":131},{"type":9,"tag":41,"props":10753,"children":10754},{"style":91},[10755],{"type":14,"value":109},{"type":9,"tag":41,"props":10757,"children":10758},{"style":71},[10759],{"type":14,"value":140},{"type":9,"tag":41,"props":10761,"children":10762},{"class":43,"line":143},[10763],{"type":9,"tag":41,"props":10764,"children":10765},{"emptyLinePlaceholder":147},[10766],{"type":14,"value":150},{"type":9,"tag":41,"props":10768,"children":10769},{"class":43,"line":153},[10770,10774,10778,10782,10786,10790,10794],{"type":9,"tag":41,"props":10771,"children":10772},{"style":91},[10773],{"type":14,"value":159},{"type":9,"tag":41,"props":10775,"children":10776},{"style":48},[10777],{"type":14,"value":164},{"type":9,"tag":41,"props":10779,"children":10780},{"style":167},[10781],{"type":14,"value":170},{"type":9,"tag":41,"props":10783,"children":10784},{"style":48},[10785],{"type":14,"value":175},{"type":9,"tag":41,"props":10787,"children":10788},{"style":91},[10789],{"type":14,"value":68},{"type":9,"tag":41,"props":10791,"children":10792},{"style":60},[10793],{"type":14,"value":184},{"type":9,"tag":41,"props":10795,"children":10796},{"style":48},[10797],{"type":14,"value":189},{"type":9,"tag":41,"props":10799,"children":10800},{"class":43,"line":192},[10801,10805,10809,10813,10817],{"type":9,"tag":41,"props":10802,"children":10803},{"style":91},[10804],{"type":14,"value":159},{"type":9,"tag":41,"props":10806,"children":10807},{"style":167},[10808],{"type":14,"value":202},{"type":9,"tag":41,"props":10810,"children":10811},{"style":91},[10812],{"type":14,"value":207},{"type":9,"tag":41,"props":10814,"children":10815},{"style":60},[10816],{"type":14,"value":212},{"type":9,"tag":41,"props":10818,"children":10819},{"style":48},[10820],{"type":14,"value":189},{"type":9,"tag":41,"props":10822,"children":10823},{"class":43,"line":219},[10824],{"type":9,"tag":41,"props":10825,"children":10826},{"emptyLinePlaceholder":147},[10827],{"type":14,"value":150},{"type":9,"tag":41,"props":10829,"children":10830},{"class":43,"line":227},[10831,10835,10839,10843,10847,10851],{"type":9,"tag":41,"props":10832,"children":10833},{"style":91},[10834],{"type":14,"value":159},{"type":9,"tag":41,"props":10836,"children":10837},{"style":167},[10838],{"type":14,"value":237},{"type":9,"tag":41,"props":10840,"children":10841},{"style":91},[10842],{"type":14,"value":207},{"type":9,"tag":41,"props":10844,"children":10845},{"style":48},[10846],{"type":14,"value":246},{"type":9,"tag":41,"props":10848,"children":10849},{"style":60},[10850],{"type":14,"value":251},{"type":9,"tag":41,"props":10852,"children":10853},{"style":48},[10854],{"type":14,"value":256},{"type":9,"tag":41,"props":10856,"children":10857},{"class":43,"line":259},[10858,10863,10867],{"type":9,"tag":41,"props":10859,"children":10860},{"style":48},[10861],{"type":14,"value":10862},"  volume: afz.",{"type":9,"tag":41,"props":10864,"children":10865},{"style":60},[10866],{"type":14,"value":9518},{"type":9,"tag":41,"props":10868,"children":10869},{"style":48},[10870],{"type":14,"value":256},{"type":9,"tag":41,"props":10872,"children":10873},{"class":43,"line":277},[10874,10878,10883],{"type":9,"tag":41,"props":10875,"children":10876},{"style":48},[10877],{"type":14,"value":973},{"type":9,"tag":41,"props":10879,"children":10880},{"style":71},[10881],{"type":14,"value":10882},"'slider'",{"type":9,"tag":41,"props":10884,"children":10885},{"style":48},[10886],{"type":14,"value":539},{"type":9,"tag":41,"props":10888,"children":10889},{"class":43,"line":286},[10890],{"type":9,"tag":41,"props":10891,"children":10892},{"style":48},[10893],{"type":14,"value":283},{"type":9,"tag":41,"props":10895,"children":10896},{"class":43,"line":300},[10897,10902,10906],{"type":9,"tag":41,"props":10898,"children":10899},{"style":48},[10900],{"type":14,"value":10901},"      min: ",{"type":9,"tag":41,"props":10903,"children":10904},{"style":167},[10905],{"type":14,"value":9567},{"type":9,"tag":41,"props":10907,"children":10908},{"style":48},[10909],{"type":14,"value":539},{"type":9,"tag":41,"props":10911,"children":10912},{"class":43,"line":309},[10913,10918,10922],{"type":9,"tag":41,"props":10914,"children":10915},{"style":48},[10916],{"type":14,"value":10917},"      max: ",{"type":9,"tag":41,"props":10919,"children":10920},{"style":167},[10921],{"type":14,"value":9600},{"type":9,"tag":41,"props":10923,"children":10924},{"style":48},[10925],{"type":14,"value":539},{"type":9,"tag":41,"props":10927,"children":10928},{"class":43,"line":318},[10929,10933],{"type":9,"tag":41,"props":10930,"children":10931},{"style":48},[10932],{"type":14,"value":10221},{"type":9,"tag":41,"props":10934,"children":10935},{"style":167},[10936],{"type":14,"value":10937},"5\n",{"type":9,"tag":41,"props":10939,"children":10940},{"class":43,"line":378},[10941],{"type":9,"tag":41,"props":10942,"children":10943},{"style":48},[10944],{"type":14,"value":306},{"type":9,"tag":41,"props":10946,"children":10947},{"class":43,"line":395},[10948],{"type":9,"tag":41,"props":10949,"children":10950},{"style":48},[10951],{"type":14,"value":315},{"type":9,"tag":41,"props":10953,"children":10954},{"class":43,"line":408},[10955,10959,10963,10967,10972],{"type":9,"tag":41,"props":10956,"children":10957},{"style":48},[10958],{"type":14,"value":324},{"type":9,"tag":41,"props":10960,"children":10961},{"style":60},[10962],{"type":14,"value":997},{"type":9,"tag":41,"props":10964,"children":10965},{"style":48},[10966],{"type":14,"value":334},{"type":9,"tag":41,"props":10968,"children":10969},{"style":167},[10970],{"type":14,"value":10971},"50",{"type":9,"tag":41,"props":10973,"children":10974},{"style":48},[10975],{"type":14,"value":375},{"type":9,"tag":41,"props":10977,"children":10978},{"class":43,"line":417},[10979,10983,10987],{"type":9,"tag":41,"props":10980,"children":10981},{"style":48},[10982],{"type":14,"value":324},{"type":9,"tag":41,"props":10984,"children":10985},{"style":60},[10986],{"type":14,"value":388},{"type":9,"tag":41,"props":10988,"children":10989},{"style":48},[10990],{"type":14,"value":256},{"type":9,"tag":41,"props":10992,"children":10993},{"class":43,"line":426},[10994,10998,11003],{"type":9,"tag":41,"props":10995,"children":10996},{"style":48},[10997],{"type":14,"value":292},{"type":9,"tag":41,"props":10999,"children":11000},{"style":71},[11001],{"type":14,"value":11002},"'音量滑块'",{"type":9,"tag":41,"props":11004,"children":11005},{"style":48},[11006],{"type":14,"value":539},{"type":9,"tag":41,"props":11008,"children":11009},{"class":43,"line":434},[11010,11014],{"type":9,"tag":41,"props":11011,"children":11012},{"style":48},[11013],{"type":14,"value":1049},{"type":9,"tag":41,"props":11015,"children":11016},{"style":71},[11017],{"type":14,"value":11018},"'拖动滑块调整数值，步长为 5'\n",{"type":9,"tag":41,"props":11020,"children":11021},{"class":43,"line":505},[11022],{"type":9,"tag":41,"props":11023,"children":11024},{"style":48},[11025],{"type":14,"value":414},{"type":9,"tag":41,"props":11027,"children":11028},{"class":43,"line":523},[11029],{"type":9,"tag":41,"props":11030,"children":11031},{"style":48},[11032],{"type":14,"value":423},{"type":9,"tag":41,"props":11034,"children":11035},{"class":43,"line":542},[11036],{"type":9,"tag":41,"props":11037,"children":11038},{"emptyLinePlaceholder":147},[11039],{"type":14,"value":150},{"type":9,"tag":41,"props":11041,"children":11042},{"class":43,"line":560},[11043,11047,11051,11055,11059,11063,11067,11071,11075,11079,11083,11087,11091,11095],{"type":9,"tag":41,"props":11044,"children":11045},{"style":91},[11046],{"type":14,"value":440},{"type":9,"tag":41,"props":11048,"children":11049},{"style":91},[11050],{"type":14,"value":445},{"type":9,"tag":41,"props":11052,"children":11053},{"style":60},[11054],{"type":14,"value":450},{"type":9,"tag":41,"props":11056,"children":11057},{"style":48},[11058],{"type":14,"value":334},{"type":9,"tag":41,"props":11060,"children":11061},{"style":337},[11062],{"type":14,"value":459},{"type":9,"tag":41,"props":11064,"children":11065},{"style":91},[11066],{"type":14,"value":464},{"type":9,"tag":41,"props":11068,"children":11069},{"style":60},[11070],{"type":14,"value":469},{"type":9,"tag":41,"props":11072,"children":11073},{"style":48},[11074],{"type":14,"value":51},{"type":9,"tag":41,"props":11076,"children":11077},{"style":60},[11078],{"type":14,"value":478},{"type":9,"tag":41,"props":11080,"children":11081},{"style":48},[11082],{"type":14,"value":483},{"type":9,"tag":41,"props":11084,"children":11085},{"style":60},[11086],{"type":14,"value":488},{"type":9,"tag":41,"props":11088,"children":11089},{"style":48},[11090],{"type":14,"value":51},{"type":9,"tag":41,"props":11092,"children":11093},{"style":91},[11094],{"type":14,"value":497},{"type":9,"tag":41,"props":11096,"children":11097},{"style":48},[11098],{"type":14,"value":502},{"type":9,"tag":41,"props":11100,"children":11101},{"class":43,"line":606},[11102,11106,11110],{"type":9,"tag":41,"props":11103,"children":11104},{"style":48},[11105],{"type":14,"value":511},{"type":9,"tag":41,"props":11107,"children":11108},{"style":60},[11109],{"type":14,"value":516},{"type":9,"tag":41,"props":11111,"children":11112},{"style":48},[11113],{"type":14,"value":256},{"type":9,"tag":41,"props":11115,"children":11116},{"class":43,"line":614},[11117,11121,11125],{"type":9,"tag":41,"props":11118,"children":11119},{"style":48},[11120],{"type":14,"value":529},{"type":9,"tag":41,"props":11122,"children":11123},{"style":71},[11124],{"type":14,"value":534},{"type":9,"tag":41,"props":11126,"children":11127},{"style":48},[11128],{"type":14,"value":539},{"type":9,"tag":41,"props":11130,"children":11131},{"class":43,"line":623},[11132,11136,11140],{"type":9,"tag":41,"props":11133,"children":11134},{"style":48},[11135],{"type":14,"value":548},{"type":9,"tag":41,"props":11137,"children":11138},{"style":71},[11139],{"type":14,"value":553},{"type":9,"tag":41,"props":11141,"children":11142},{"style":48},[11143],{"type":14,"value":539},{"type":9,"tag":41,"props":11145,"children":11146},{"class":43,"line":640},[11147,11151,11155,11159,11163,11167,11171,11175,11179],{"type":9,"tag":41,"props":11148,"children":11149},{"style":48},[11150],{"type":14,"value":566},{"type":9,"tag":41,"props":11152,"children":11153},{"style":167},[11154],{"type":14,"value":571},{"type":9,"tag":41,"props":11156,"children":11157},{"style":48},[11158],{"type":14,"value":483},{"type":9,"tag":41,"props":11160,"children":11161},{"style":60},[11162],{"type":14,"value":580},{"type":9,"tag":41,"props":11164,"children":11165},{"style":48},[11166],{"type":14,"value":585},{"type":9,"tag":41,"props":11168,"children":11169},{"style":167},[11170],{"type":14,"value":590},{"type":9,"tag":41,"props":11172,"children":11173},{"style":48},[11174],{"type":14,"value":365},{"type":9,"tag":41,"props":11176,"children":11177},{"style":167},[11178],{"type":14,"value":599},{"type":9,"tag":41,"props":11180,"children":11181},{"style":48},[11182],{"type":14,"value":375},{"type":9,"tag":41,"props":11184,"children":11185},{"class":43,"line":648},[11186],{"type":9,"tag":41,"props":11187,"children":11188},{"style":48},[11189],{"type":14,"value":315},{"type":9,"tag":41,"props":11191,"children":11192},{"class":43,"line":665},[11193],{"type":9,"tag":41,"props":11194,"children":11195},{"style":48},[11196],{"type":14,"value":620},{"type":9,"tag":41,"props":11198,"children":11199},{"class":43,"line":738},[11200,11204,11208],{"type":9,"tag":41,"props":11201,"children":11202},{"style":48},[11203],{"type":14,"value":629},{"type":9,"tag":41,"props":11205,"children":11206},{"style":54},[11207],{"type":14,"value":57},{"type":9,"tag":41,"props":11209,"children":11210},{"style":48},[11211],{"type":14,"value":84},{"type":9,"tag":41,"props":11213,"children":11214},{"class":43,"line":3093},[11215],{"type":9,"tag":41,"props":11216,"children":11217},{"emptyLinePlaceholder":147},[11218],{"type":14,"value":150},{"type":9,"tag":41,"props":11220,"children":11221},{"class":43,"line":3101},[11222,11226,11230],{"type":9,"tag":41,"props":11223,"children":11224},{"style":48},[11225],{"type":14,"value":51},{"type":9,"tag":41,"props":11227,"children":11228},{"style":54},[11229],{"type":14,"value":658},{"type":9,"tag":41,"props":11231,"children":11232},{"style":48},[11233],{"type":14,"value":84},{"type":9,"tag":41,"props":11235,"children":11236},{"class":43,"line":3117},[11237,11241,11245,11249,11253,11257,11261,11265,11269,11273,11277,11281,11285,11289,11293],{"type":9,"tag":41,"props":11238,"children":11239},{"style":48},[11240],{"type":14,"value":671},{"type":9,"tag":41,"props":11242,"children":11243},{"style":54},[11244],{"type":14,"value":676},{"type":9,"tag":41,"props":11246,"children":11247},{"style":48},[11248],{"type":14,"value":681},{"type":9,"tag":41,"props":11250,"children":11251},{"style":60},[11252],{"type":14,"value":686},{"type":9,"tag":41,"props":11254,"children":11255},{"style":48},[11256],{"type":14,"value":68},{"type":9,"tag":41,"props":11258,"children":11259},{"style":71},[11260],{"type":14,"value":695},{"type":9,"tag":41,"props":11262,"children":11263},{"style":48},[11264],{"type":14,"value":686},{"type":9,"tag":41,"props":11266,"children":11267},{"style":71},[11268],{"type":14,"value":695},{"type":9,"tag":41,"props":11270,"children":11271},{"style":48},[11272],{"type":14,"value":708},{"type":9,"tag":41,"props":11274,"children":11275},{"style":60},[11276],{"type":14,"value":713},{"type":9,"tag":41,"props":11278,"children":11279},{"style":48},[11280],{"type":14,"value":68},{"type":9,"tag":41,"props":11282,"children":11283},{"style":71},[11284],{"type":14,"value":695},{"type":9,"tag":41,"props":11286,"children":11287},{"style":48},[11288],{"type":14,"value":726},{"type":9,"tag":41,"props":11290,"children":11291},{"style":71},[11292],{"type":14,"value":695},{"type":9,"tag":41,"props":11294,"children":11295},{"style":48},[11296],{"type":14,"value":735},{"type":9,"tag":41,"props":11298,"children":11299},{"class":43,"line":3181},[11300,11304,11308],{"type":9,"tag":41,"props":11301,"children":11302},{"style":48},[11303],{"type":14,"value":629},{"type":9,"tag":41,"props":11305,"children":11306},{"style":54},[11307],{"type":14,"value":658},{"type":9,"tag":41,"props":11309,"children":11310},{"style":48},[11311],{"type":14,"value":84},{"type":9,"tag":753,"props":11313,"children":11314},{},[11315],{"type":14,"value":757},{"title":22,"searchDepth":87,"depth":87,"links":11317},[],{"code":11319,"filePath":11320,"pascalName":11321},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  text: afz.string({\n    controlProps: {\n      icon: 'i-lucide-text'\n    }\n  })\n    .min(3, '至少 3 个字符')\n    .max(20, '最多 20 个字符')\n    .meta({\n      label: '基础输入框',\n      placeholder: '请输入文本',\n      hint: '支持图标、颜色等配置'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Ffield-types\u002FAutoFormFieldStringInputExample.vue","AutoFormFieldStringInputExample",{"data":11323,"body":11324,"toc":11987},{"title":22,"description":22},{"type":6,"children":11325},[11326,11983],{"type":9,"tag":26,"props":11327,"children":11328},{},[11329],{"type":9,"tag":30,"props":11330,"children":11332},{"className":32,"code":11331,"language":34,"meta":22,"style":22},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  text: afz.string({\n    controlProps: {\n      icon: 'i-lucide-text'\n    }\n  })\n    .min(3, '至少 3 个字符')\n    .max(20, '最多 20 个字符')\n    .meta({\n      label: '基础输入框',\n      placeholder: '请输入文本',\n      hint: '支持图标、颜色等配置'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n\n",[11333],{"type":9,"tag":37,"props":11334,"children":11335},{"__ignoreMap":22},[11336,11367,11390,11413,11420,11451,11474,11481,11508,11525,11532,11551,11558,11565,11598,11631,11646,11662,11678,11690,11697,11704,11711,11770,11785,11800,11815,11854,11861,11868,11883,11890,11905,11968],{"type":9,"tag":41,"props":11337,"children":11338},{"class":43,"line":44},[11339,11343,11347,11351,11355,11359,11363],{"type":9,"tag":41,"props":11340,"children":11341},{"style":48},[11342],{"type":14,"value":51},{"type":9,"tag":41,"props":11344,"children":11345},{"style":54},[11346],{"type":14,"value":57},{"type":9,"tag":41,"props":11348,"children":11349},{"style":60},[11350],{"type":14,"value":63},{"type":9,"tag":41,"props":11352,"children":11353},{"style":48},[11354],{"type":14,"value":68},{"type":9,"tag":41,"props":11356,"children":11357},{"style":71},[11358],{"type":14,"value":74},{"type":9,"tag":41,"props":11360,"children":11361},{"style":60},[11362],{"type":14,"value":79},{"type":9,"tag":41,"props":11364,"children":11365},{"style":48},[11366],{"type":14,"value":84},{"type":9,"tag":41,"props":11368,"children":11369},{"class":43,"line":87},[11370,11374,11378,11382,11386],{"type":9,"tag":41,"props":11371,"children":11372},{"style":91},[11373],{"type":14,"value":94},{"type":9,"tag":41,"props":11375,"children":11376},{"style":91},[11377],{"type":14,"value":99},{"type":9,"tag":41,"props":11379,"children":11380},{"style":48},[11381],{"type":14,"value":104},{"type":9,"tag":41,"props":11383,"children":11384},{"style":91},[11385],{"type":14,"value":109},{"type":9,"tag":41,"props":11387,"children":11388},{"style":71},[11389],{"type":14,"value":114},{"type":9,"tag":41,"props":11391,"children":11392},{"class":43,"line":117},[11393,11397,11401,11405,11409],{"type":9,"tag":41,"props":11394,"children":11395},{"style":91},[11396],{"type":14,"value":94},{"type":9,"tag":41,"props":11398,"children":11399},{"style":91},[11400],{"type":14,"value":99},{"type":9,"tag":41,"props":11402,"children":11403},{"style":48},[11404],{"type":14,"value":131},{"type":9,"tag":41,"props":11406,"children":11407},{"style":91},[11408],{"type":14,"value":109},{"type":9,"tag":41,"props":11410,"children":11411},{"style":71},[11412],{"type":14,"value":140},{"type":9,"tag":41,"props":11414,"children":11415},{"class":43,"line":143},[11416],{"type":9,"tag":41,"props":11417,"children":11418},{"emptyLinePlaceholder":147},[11419],{"type":14,"value":150},{"type":9,"tag":41,"props":11421,"children":11422},{"class":43,"line":153},[11423,11427,11431,11435,11439,11443,11447],{"type":9,"tag":41,"props":11424,"children":11425},{"style":91},[11426],{"type":14,"value":159},{"type":9,"tag":41,"props":11428,"children":11429},{"style":48},[11430],{"type":14,"value":164},{"type":9,"tag":41,"props":11432,"children":11433},{"style":167},[11434],{"type":14,"value":170},{"type":9,"tag":41,"props":11436,"children":11437},{"style":48},[11438],{"type":14,"value":175},{"type":9,"tag":41,"props":11440,"children":11441},{"style":91},[11442],{"type":14,"value":68},{"type":9,"tag":41,"props":11444,"children":11445},{"style":60},[11446],{"type":14,"value":184},{"type":9,"tag":41,"props":11448,"children":11449},{"style":48},[11450],{"type":14,"value":189},{"type":9,"tag":41,"props":11452,"children":11453},{"class":43,"line":192},[11454,11458,11462,11466,11470],{"type":9,"tag":41,"props":11455,"children":11456},{"style":91},[11457],{"type":14,"value":159},{"type":9,"tag":41,"props":11459,"children":11460},{"style":167},[11461],{"type":14,"value":202},{"type":9,"tag":41,"props":11463,"children":11464},{"style":91},[11465],{"type":14,"value":207},{"type":9,"tag":41,"props":11467,"children":11468},{"style":60},[11469],{"type":14,"value":212},{"type":9,"tag":41,"props":11471,"children":11472},{"style":48},[11473],{"type":14,"value":189},{"type":9,"tag":41,"props":11475,"children":11476},{"class":43,"line":219},[11477],{"type":9,"tag":41,"props":11478,"children":11479},{"emptyLinePlaceholder":147},[11480],{"type":14,"value":150},{"type":9,"tag":41,"props":11482,"children":11483},{"class":43,"line":227},[11484,11488,11492,11496,11500,11504],{"type":9,"tag":41,"props":11485,"children":11486},{"style":91},[11487],{"type":14,"value":159},{"type":9,"tag":41,"props":11489,"children":11490},{"style":167},[11491],{"type":14,"value":237},{"type":9,"tag":41,"props":11493,"children":11494},{"style":91},[11495],{"type":14,"value":207},{"type":9,"tag":41,"props":11497,"children":11498},{"style":48},[11499],{"type":14,"value":246},{"type":9,"tag":41,"props":11501,"children":11502},{"style":60},[11503],{"type":14,"value":251},{"type":9,"tag":41,"props":11505,"children":11506},{"style":48},[11507],{"type":14,"value":256},{"type":9,"tag":41,"props":11509,"children":11510},{"class":43,"line":259},[11511,11516,11521],{"type":9,"tag":41,"props":11512,"children":11513},{"style":48},[11514],{"type":14,"value":11515},"  text: afz.",{"type":9,"tag":41,"props":11517,"children":11518},{"style":60},[11519],{"type":14,"value":11520},"string",{"type":9,"tag":41,"props":11522,"children":11523},{"style":48},[11524],{"type":14,"value":256},{"type":9,"tag":41,"props":11526,"children":11527},{"class":43,"line":277},[11528],{"type":9,"tag":41,"props":11529,"children":11530},{"style":48},[11531],{"type":14,"value":283},{"type":9,"tag":41,"props":11533,"children":11534},{"class":43,"line":286},[11535,11540],{"type":9,"tag":41,"props":11536,"children":11537},{"style":48},[11538],{"type":14,"value":11539},"      icon: ",{"type":9,"tag":41,"props":11541,"children":11542},{"style":71},[11543,11549],{"type":9,"tag":11544,"props":11545,"children":11548},"i",{"class":11546,"style":11547},"shiki-icon-highlight","--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Ftext.svg?color=%23000)",[],{"type":14,"value":11550},"'i-lucide-text'\n",{"type":9,"tag":41,"props":11552,"children":11553},{"class":43,"line":300},[11554],{"type":9,"tag":41,"props":11555,"children":11556},{"style":48},[11557],{"type":14,"value":306},{"type":9,"tag":41,"props":11559,"children":11560},{"class":43,"line":309},[11561],{"type":9,"tag":41,"props":11562,"children":11563},{"style":48},[11564],{"type":14,"value":315},{"type":9,"tag":41,"props":11566,"children":11567},{"class":43,"line":318},[11568,11572,11576,11580,11585,11589,11594],{"type":9,"tag":41,"props":11569,"children":11570},{"style":48},[11571],{"type":14,"value":324},{"type":9,"tag":41,"props":11573,"children":11574},{"style":60},[11575],{"type":14,"value":5538},{"type":9,"tag":41,"props":11577,"children":11578},{"style":48},[11579],{"type":14,"value":334},{"type":9,"tag":41,"props":11581,"children":11582},{"style":167},[11583],{"type":14,"value":11584},"3",{"type":9,"tag":41,"props":11586,"children":11587},{"style":48},[11588],{"type":14,"value":365},{"type":9,"tag":41,"props":11590,"children":11591},{"style":71},[11592],{"type":14,"value":11593},"'至少 3 个字符'",{"type":9,"tag":41,"props":11595,"children":11596},{"style":48},[11597],{"type":14,"value":375},{"type":9,"tag":41,"props":11599,"children":11600},{"class":43,"line":378},[11601,11605,11609,11613,11618,11622,11627],{"type":9,"tag":41,"props":11602,"children":11603},{"style":48},[11604],{"type":14,"value":324},{"type":9,"tag":41,"props":11606,"children":11607},{"style":60},[11608],{"type":14,"value":5571},{"type":9,"tag":41,"props":11610,"children":11611},{"style":48},[11612],{"type":14,"value":334},{"type":9,"tag":41,"props":11614,"children":11615},{"style":167},[11616],{"type":14,"value":11617},"20",{"type":9,"tag":41,"props":11619,"children":11620},{"style":48},[11621],{"type":14,"value":365},{"type":9,"tag":41,"props":11623,"children":11624},{"style":71},[11625],{"type":14,"value":11626},"'最多 20 个字符'",{"type":9,"tag":41,"props":11628,"children":11629},{"style":48},[11630],{"type":14,"value":375},{"type":9,"tag":41,"props":11632,"children":11633},{"class":43,"line":395},[11634,11638,11642],{"type":9,"tag":41,"props":11635,"children":11636},{"style":48},[11637],{"type":14,"value":324},{"type":9,"tag":41,"props":11639,"children":11640},{"style":60},[11641],{"type":14,"value":388},{"type":9,"tag":41,"props":11643,"children":11644},{"style":48},[11645],{"type":14,"value":256},{"type":9,"tag":41,"props":11647,"children":11648},{"class":43,"line":408},[11649,11653,11658],{"type":9,"tag":41,"props":11650,"children":11651},{"style":48},[11652],{"type":14,"value":292},{"type":9,"tag":41,"props":11654,"children":11655},{"style":71},[11656],{"type":14,"value":11657},"'基础输入框'",{"type":9,"tag":41,"props":11659,"children":11660},{"style":48},[11661],{"type":14,"value":539},{"type":9,"tag":41,"props":11663,"children":11664},{"class":43,"line":417},[11665,11669,11674],{"type":9,"tag":41,"props":11666,"children":11667},{"style":48},[11668],{"type":14,"value":4231},{"type":9,"tag":41,"props":11670,"children":11671},{"style":71},[11672],{"type":14,"value":11673},"'请输入文本'",{"type":9,"tag":41,"props":11675,"children":11676},{"style":48},[11677],{"type":14,"value":539},{"type":9,"tag":41,"props":11679,"children":11680},{"class":43,"line":426},[11681,11685],{"type":9,"tag":41,"props":11682,"children":11683},{"style":48},[11684],{"type":14,"value":1049},{"type":9,"tag":41,"props":11686,"children":11687},{"style":71},[11688],{"type":14,"value":11689},"'支持图标、颜色等配置'\n",{"type":9,"tag":41,"props":11691,"children":11692},{"class":43,"line":434},[11693],{"type":9,"tag":41,"props":11694,"children":11695},{"style":48},[11696],{"type":14,"value":414},{"type":9,"tag":41,"props":11698,"children":11699},{"class":43,"line":505},[11700],{"type":9,"tag":41,"props":11701,"children":11702},{"style":48},[11703],{"type":14,"value":423},{"type":9,"tag":41,"props":11705,"children":11706},{"class":43,"line":523},[11707],{"type":9,"tag":41,"props":11708,"children":11709},{"emptyLinePlaceholder":147},[11710],{"type":14,"value":150},{"type":9,"tag":41,"props":11712,"children":11713},{"class":43,"line":542},[11714,11718,11722,11726,11730,11734,11738,11742,11746,11750,11754,11758,11762,11766],{"type":9,"tag":41,"props":11715,"children":11716},{"style":91},[11717],{"type":14,"value":440},{"type":9,"tag":41,"props":11719,"children":11720},{"style":91},[11721],{"type":14,"value":445},{"type":9,"tag":41,"props":11723,"children":11724},{"style":60},[11725],{"type":14,"value":450},{"type":9,"tag":41,"props":11727,"children":11728},{"style":48},[11729],{"type":14,"value":334},{"type":9,"tag":41,"props":11731,"children":11732},{"style":337},[11733],{"type":14,"value":459},{"type":9,"tag":41,"props":11735,"children":11736},{"style":91},[11737],{"type":14,"value":464},{"type":9,"tag":41,"props":11739,"children":11740},{"style":60},[11741],{"type":14,"value":469},{"type":9,"tag":41,"props":11743,"children":11744},{"style":48},[11745],{"type":14,"value":51},{"type":9,"tag":41,"props":11747,"children":11748},{"style":60},[11749],{"type":14,"value":478},{"type":9,"tag":41,"props":11751,"children":11752},{"style":48},[11753],{"type":14,"value":483},{"type":9,"tag":41,"props":11755,"children":11756},{"style":60},[11757],{"type":14,"value":488},{"type":9,"tag":41,"props":11759,"children":11760},{"style":48},[11761],{"type":14,"value":51},{"type":9,"tag":41,"props":11763,"children":11764},{"style":91},[11765],{"type":14,"value":497},{"type":9,"tag":41,"props":11767,"children":11768},{"style":48},[11769],{"type":14,"value":502},{"type":9,"tag":41,"props":11771,"children":11772},{"class":43,"line":560},[11773,11777,11781],{"type":9,"tag":41,"props":11774,"children":11775},{"style":48},[11776],{"type":14,"value":511},{"type":9,"tag":41,"props":11778,"children":11779},{"style":60},[11780],{"type":14,"value":516},{"type":9,"tag":41,"props":11782,"children":11783},{"style":48},[11784],{"type":14,"value":256},{"type":9,"tag":41,"props":11786,"children":11787},{"class":43,"line":606},[11788,11792,11796],{"type":9,"tag":41,"props":11789,"children":11790},{"style":48},[11791],{"type":14,"value":529},{"type":9,"tag":41,"props":11793,"children":11794},{"style":71},[11795],{"type":14,"value":534},{"type":9,"tag":41,"props":11797,"children":11798},{"style":48},[11799],{"type":14,"value":539},{"type":9,"tag":41,"props":11801,"children":11802},{"class":43,"line":614},[11803,11807,11811],{"type":9,"tag":41,"props":11804,"children":11805},{"style":48},[11806],{"type":14,"value":548},{"type":9,"tag":41,"props":11808,"children":11809},{"style":71},[11810],{"type":14,"value":553},{"type":9,"tag":41,"props":11812,"children":11813},{"style":48},[11814],{"type":14,"value":539},{"type":9,"tag":41,"props":11816,"children":11817},{"class":43,"line":623},[11818,11822,11826,11830,11834,11838,11842,11846,11850],{"type":9,"tag":41,"props":11819,"children":11820},{"style":48},[11821],{"type":14,"value":566},{"type":9,"tag":41,"props":11823,"children":11824},{"style":167},[11825],{"type":14,"value":571},{"type":9,"tag":41,"props":11827,"children":11828},{"style":48},[11829],{"type":14,"value":483},{"type":9,"tag":41,"props":11831,"children":11832},{"style":60},[11833],{"type":14,"value":580},{"type":9,"tag":41,"props":11835,"children":11836},{"style":48},[11837],{"type":14,"value":585},{"type":9,"tag":41,"props":11839,"children":11840},{"style":167},[11841],{"type":14,"value":590},{"type":9,"tag":41,"props":11843,"children":11844},{"style":48},[11845],{"type":14,"value":365},{"type":9,"tag":41,"props":11847,"children":11848},{"style":167},[11849],{"type":14,"value":599},{"type":9,"tag":41,"props":11851,"children":11852},{"style":48},[11853],{"type":14,"value":375},{"type":9,"tag":41,"props":11855,"children":11856},{"class":43,"line":640},[11857],{"type":9,"tag":41,"props":11858,"children":11859},{"style":48},[11860],{"type":14,"value":315},{"type":9,"tag":41,"props":11862,"children":11863},{"class":43,"line":648},[11864],{"type":9,"tag":41,"props":11865,"children":11866},{"style":48},[11867],{"type":14,"value":620},{"type":9,"tag":41,"props":11869,"children":11870},{"class":43,"line":665},[11871,11875,11879],{"type":9,"tag":41,"props":11872,"children":11873},{"style":48},[11874],{"type":14,"value":629},{"type":9,"tag":41,"props":11876,"children":11877},{"style":54},[11878],{"type":14,"value":57},{"type":9,"tag":41,"props":11880,"children":11881},{"style":48},[11882],{"type":14,"value":84},{"type":9,"tag":41,"props":11884,"children":11885},{"class":43,"line":738},[11886],{"type":9,"tag":41,"props":11887,"children":11888},{"emptyLinePlaceholder":147},[11889],{"type":14,"value":150},{"type":9,"tag":41,"props":11891,"children":11892},{"class":43,"line":3093},[11893,11897,11901],{"type":9,"tag":41,"props":11894,"children":11895},{"style":48},[11896],{"type":14,"value":51},{"type":9,"tag":41,"props":11898,"children":11899},{"style":54},[11900],{"type":14,"value":658},{"type":9,"tag":41,"props":11902,"children":11903},{"style":48},[11904],{"type":14,"value":84},{"type":9,"tag":41,"props":11906,"children":11907},{"class":43,"line":3101},[11908,11912,11916,11920,11924,11928,11932,11936,11940,11944,11948,11952,11956,11960,11964],{"type":9,"tag":41,"props":11909,"children":11910},{"style":48},[11911],{"type":14,"value":671},{"type":9,"tag":41,"props":11913,"children":11914},{"style":54},[11915],{"type":14,"value":676},{"type":9,"tag":41,"props":11917,"children":11918},{"style":48},[11919],{"type":14,"value":681},{"type":9,"tag":41,"props":11921,"children":11922},{"style":60},[11923],{"type":14,"value":686},{"type":9,"tag":41,"props":11925,"children":11926},{"style":48},[11927],{"type":14,"value":68},{"type":9,"tag":41,"props":11929,"children":11930},{"style":71},[11931],{"type":14,"value":695},{"type":9,"tag":41,"props":11933,"children":11934},{"style":48},[11935],{"type":14,"value":686},{"type":9,"tag":41,"props":11937,"children":11938},{"style":71},[11939],{"type":14,"value":695},{"type":9,"tag":41,"props":11941,"children":11942},{"style":48},[11943],{"type":14,"value":708},{"type":9,"tag":41,"props":11945,"children":11946},{"style":60},[11947],{"type":14,"value":713},{"type":9,"tag":41,"props":11949,"children":11950},{"style":48},[11951],{"type":14,"value":68},{"type":9,"tag":41,"props":11953,"children":11954},{"style":71},[11955],{"type":14,"value":695},{"type":9,"tag":41,"props":11957,"children":11958},{"style":48},[11959],{"type":14,"value":726},{"type":9,"tag":41,"props":11961,"children":11962},{"style":71},[11963],{"type":14,"value":695},{"type":9,"tag":41,"props":11965,"children":11966},{"style":48},[11967],{"type":14,"value":735},{"type":9,"tag":41,"props":11969,"children":11970},{"class":43,"line":3117},[11971,11975,11979],{"type":9,"tag":41,"props":11972,"children":11973},{"style":48},[11974],{"type":14,"value":629},{"type":9,"tag":41,"props":11976,"children":11977},{"style":54},[11978],{"type":14,"value":658},{"type":9,"tag":41,"props":11980,"children":11981},{"style":48},[11982],{"type":14,"value":84},{"type":9,"tag":753,"props":11984,"children":11985},{},[11986],{"type":14,"value":757},{"title":22,"searchDepth":87,"depth":87,"links":11988},[],{"code":11990,"filePath":11991,"pascalName":11992},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent, InputMenuItem } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst items = [\n  { label: 'Apple', value: 'apple' },\n  { label: 'Banana', value: 'banana' },\n  { label: 'Orange', value: 'orange' },\n  { label: 'Grape', value: 'grape' }\n] satisfies InputMenuItem[]\n\nconst schema = afz.object({\n  fruit: afz.string({\n    type: 'inputMenu',\n    controlProps: {\n      items,\n      valueKey: 'value'\n    }\n  })\n    .meta({\n      label: '输入菜单',\n      placeholder: '输入或选择水果',\n      hint: '支持输入和下拉选择'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Ffield-types\u002FAutoFormFieldStringInputMenuExample.vue","AutoFormFieldStringInputMenuExample",{"data":11994,"body":11995,"toc":12757},{"title":22,"description":22},{"type":6,"children":11996},[11997,12753],{"type":9,"tag":26,"props":11998,"children":11999},{},[12000],{"type":9,"tag":30,"props":12001,"children":12003},{"className":32,"code":12002,"language":34,"meta":22,"style":22},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent, InputMenuItem } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst items = [\n  { label: 'Apple', value: 'apple' },\n  { label: 'Banana', value: 'banana' },\n  { label: 'Orange', value: 'orange' },\n  { label: 'Grape', value: 'grape' }\n] satisfies InputMenuItem[]\n\nconst schema = afz.object({\n  fruit: afz.string({\n    type: 'inputMenu',\n    controlProps: {\n      items,\n      valueKey: 'value'\n    }\n  })\n    .meta({\n      label: '输入菜单',\n      placeholder: '输入或选择水果',\n      hint: '支持输入和下拉选择'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n\n",[12004],{"type":9,"tag":37,"props":12005,"children":12006},{"__ignoreMap":22},[12007,12038,12062,12085,12092,12123,12146,12153,12174,12199,12223,12247,12272,12295,12302,12329,12344,12360,12367,12375,12387,12394,12401,12416,12432,12448,12460,12467,12474,12481,12540,12555,12570,12585,12624,12631,12638,12653,12660,12675,12738],{"type":9,"tag":41,"props":12008,"children":12009},{"class":43,"line":44},[12010,12014,12018,12022,12026,12030,12034],{"type":9,"tag":41,"props":12011,"children":12012},{"style":48},[12013],{"type":14,"value":51},{"type":9,"tag":41,"props":12015,"children":12016},{"style":54},[12017],{"type":14,"value":57},{"type":9,"tag":41,"props":12019,"children":12020},{"style":60},[12021],{"type":14,"value":63},{"type":9,"tag":41,"props":12023,"children":12024},{"style":48},[12025],{"type":14,"value":68},{"type":9,"tag":41,"props":12027,"children":12028},{"style":71},[12029],{"type":14,"value":74},{"type":9,"tag":41,"props":12031,"children":12032},{"style":60},[12033],{"type":14,"value":79},{"type":9,"tag":41,"props":12035,"children":12036},{"style":48},[12037],{"type":14,"value":84},{"type":9,"tag":41,"props":12039,"children":12040},{"class":43,"line":87},[12041,12045,12049,12054,12058],{"type":9,"tag":41,"props":12042,"children":12043},{"style":91},[12044],{"type":14,"value":94},{"type":9,"tag":41,"props":12046,"children":12047},{"style":91},[12048],{"type":14,"value":99},{"type":9,"tag":41,"props":12050,"children":12051},{"style":48},[12052],{"type":14,"value":12053}," { FormSubmitEvent, InputMenuItem } ",{"type":9,"tag":41,"props":12055,"children":12056},{"style":91},[12057],{"type":14,"value":109},{"type":9,"tag":41,"props":12059,"children":12060},{"style":71},[12061],{"type":14,"value":114},{"type":9,"tag":41,"props":12063,"children":12064},{"class":43,"line":117},[12065,12069,12073,12077,12081],{"type":9,"tag":41,"props":12066,"children":12067},{"style":91},[12068],{"type":14,"value":94},{"type":9,"tag":41,"props":12070,"children":12071},{"style":91},[12072],{"type":14,"value":99},{"type":9,"tag":41,"props":12074,"children":12075},{"style":48},[12076],{"type":14,"value":131},{"type":9,"tag":41,"props":12078,"children":12079},{"style":91},[12080],{"type":14,"value":109},{"type":9,"tag":41,"props":12082,"children":12083},{"style":71},[12084],{"type":14,"value":140},{"type":9,"tag":41,"props":12086,"children":12087},{"class":43,"line":143},[12088],{"type":9,"tag":41,"props":12089,"children":12090},{"emptyLinePlaceholder":147},[12091],{"type":14,"value":150},{"type":9,"tag":41,"props":12093,"children":12094},{"class":43,"line":153},[12095,12099,12103,12107,12111,12115,12119],{"type":9,"tag":41,"props":12096,"children":12097},{"style":91},[12098],{"type":14,"value":159},{"type":9,"tag":41,"props":12100,"children":12101},{"style":48},[12102],{"type":14,"value":164},{"type":9,"tag":41,"props":12104,"children":12105},{"style":167},[12106],{"type":14,"value":170},{"type":9,"tag":41,"props":12108,"children":12109},{"style":48},[12110],{"type":14,"value":175},{"type":9,"tag":41,"props":12112,"children":12113},{"style":91},[12114],{"type":14,"value":68},{"type":9,"tag":41,"props":12116,"children":12117},{"style":60},[12118],{"type":14,"value":184},{"type":9,"tag":41,"props":12120,"children":12121},{"style":48},[12122],{"type":14,"value":189},{"type":9,"tag":41,"props":12124,"children":12125},{"class":43,"line":192},[12126,12130,12134,12138,12142],{"type":9,"tag":41,"props":12127,"children":12128},{"style":91},[12129],{"type":14,"value":159},{"type":9,"tag":41,"props":12131,"children":12132},{"style":167},[12133],{"type":14,"value":202},{"type":9,"tag":41,"props":12135,"children":12136},{"style":91},[12137],{"type":14,"value":207},{"type":9,"tag":41,"props":12139,"children":12140},{"style":60},[12141],{"type":14,"value":212},{"type":9,"tag":41,"props":12143,"children":12144},{"style":48},[12145],{"type":14,"value":189},{"type":9,"tag":41,"props":12147,"children":12148},{"class":43,"line":219},[12149],{"type":9,"tag":41,"props":12150,"children":12151},{"emptyLinePlaceholder":147},[12152],{"type":14,"value":150},{"type":9,"tag":41,"props":12154,"children":12155},{"class":43,"line":227},[12156,12160,12165,12169],{"type":9,"tag":41,"props":12157,"children":12158},{"style":91},[12159],{"type":14,"value":159},{"type":9,"tag":41,"props":12161,"children":12162},{"style":167},[12163],{"type":14,"value":12164}," items",{"type":9,"tag":41,"props":12166,"children":12167},{"style":91},[12168],{"type":14,"value":207},{"type":9,"tag":41,"props":12170,"children":12171},{"style":48},[12172],{"type":14,"value":12173}," [\n",{"type":9,"tag":41,"props":12175,"children":12176},{"class":43,"line":259},[12177,12182,12187,12191,12195],{"type":9,"tag":41,"props":12178,"children":12179},{"style":48},[12180],{"type":14,"value":12181},"  { label: ",{"type":9,"tag":41,"props":12183,"children":12184},{"style":71},[12185],{"type":14,"value":12186},"'Apple'",{"type":9,"tag":41,"props":12188,"children":12189},{"style":48},[12190],{"type":14,"value":4836},{"type":9,"tag":41,"props":12192,"children":12193},{"style":71},[12194],{"type":14,"value":4841},{"type":9,"tag":41,"props":12196,"children":12197},{"style":48},[12198],{"type":14,"value":3493},{"type":9,"tag":41,"props":12200,"children":12201},{"class":43,"line":277},[12202,12206,12211,12215,12219],{"type":9,"tag":41,"props":12203,"children":12204},{"style":48},[12205],{"type":14,"value":12181},{"type":9,"tag":41,"props":12207,"children":12208},{"style":71},[12209],{"type":14,"value":12210},"'Banana'",{"type":9,"tag":41,"props":12212,"children":12213},{"style":48},[12214],{"type":14,"value":4836},{"type":9,"tag":41,"props":12216,"children":12217},{"style":71},[12218],{"type":14,"value":4866},{"type":9,"tag":41,"props":12220,"children":12221},{"style":48},[12222],{"type":14,"value":3493},{"type":9,"tag":41,"props":12224,"children":12225},{"class":43,"line":286},[12226,12230,12235,12239,12243],{"type":9,"tag":41,"props":12227,"children":12228},{"style":48},[12229],{"type":14,"value":12181},{"type":9,"tag":41,"props":12231,"children":12232},{"style":71},[12233],{"type":14,"value":12234},"'Orange'",{"type":9,"tag":41,"props":12236,"children":12237},{"style":48},[12238],{"type":14,"value":4836},{"type":9,"tag":41,"props":12240,"children":12241},{"style":71},[12242],{"type":14,"value":4891},{"type":9,"tag":41,"props":12244,"children":12245},{"style":48},[12246],{"type":14,"value":3493},{"type":9,"tag":41,"props":12248,"children":12249},{"class":43,"line":300},[12250,12254,12259,12263,12268],{"type":9,"tag":41,"props":12251,"children":12252},{"style":48},[12253],{"type":14,"value":12181},{"type":9,"tag":41,"props":12255,"children":12256},{"style":71},[12257],{"type":14,"value":12258},"'Grape'",{"type":9,"tag":41,"props":12260,"children":12261},{"style":48},[12262],{"type":14,"value":4836},{"type":9,"tag":41,"props":12264,"children":12265},{"style":71},[12266],{"type":14,"value":12267},"'grape'",{"type":9,"tag":41,"props":12269,"children":12270},{"style":48},[12271],{"type":14,"value":1550},{"type":9,"tag":41,"props":12273,"children":12274},{"class":43,"line":309},[12275,12280,12285,12290],{"type":9,"tag":41,"props":12276,"children":12277},{"style":48},[12278],{"type":14,"value":12279},"] ",{"type":9,"tag":41,"props":12281,"children":12282},{"style":91},[12283],{"type":14,"value":12284},"satisfies",{"type":9,"tag":41,"props":12286,"children":12287},{"style":60},[12288],{"type":14,"value":12289}," InputMenuItem",{"type":9,"tag":41,"props":12291,"children":12292},{"style":48},[12293],{"type":14,"value":12294},"[]\n",{"type":9,"tag":41,"props":12296,"children":12297},{"class":43,"line":318},[12298],{"type":9,"tag":41,"props":12299,"children":12300},{"emptyLinePlaceholder":147},[12301],{"type":14,"value":150},{"type":9,"tag":41,"props":12303,"children":12304},{"class":43,"line":378},[12305,12309,12313,12317,12321,12325],{"type":9,"tag":41,"props":12306,"children":12307},{"style":91},[12308],{"type":14,"value":159},{"type":9,"tag":41,"props":12310,"children":12311},{"style":167},[12312],{"type":14,"value":237},{"type":9,"tag":41,"props":12314,"children":12315},{"style":91},[12316],{"type":14,"value":207},{"type":9,"tag":41,"props":12318,"children":12319},{"style":48},[12320],{"type":14,"value":246},{"type":9,"tag":41,"props":12322,"children":12323},{"style":60},[12324],{"type":14,"value":251},{"type":9,"tag":41,"props":12326,"children":12327},{"style":48},[12328],{"type":14,"value":256},{"type":9,"tag":41,"props":12330,"children":12331},{"class":43,"line":395},[12332,12336,12340],{"type":9,"tag":41,"props":12333,"children":12334},{"style":48},[12335],{"type":14,"value":4749},{"type":9,"tag":41,"props":12337,"children":12338},{"style":60},[12339],{"type":14,"value":11520},{"type":9,"tag":41,"props":12341,"children":12342},{"style":48},[12343],{"type":14,"value":256},{"type":9,"tag":41,"props":12345,"children":12346},{"class":43,"line":408},[12347,12351,12356],{"type":9,"tag":41,"props":12348,"children":12349},{"style":48},[12350],{"type":14,"value":973},{"type":9,"tag":41,"props":12352,"children":12353},{"style":71},[12354],{"type":14,"value":12355},"'inputMenu'",{"type":9,"tag":41,"props":12357,"children":12358},{"style":48},[12359],{"type":14,"value":539},{"type":9,"tag":41,"props":12361,"children":12362},{"class":43,"line":417},[12363],{"type":9,"tag":41,"props":12364,"children":12365},{"style":48},[12366],{"type":14,"value":283},{"type":9,"tag":41,"props":12368,"children":12369},{"class":43,"line":426},[12370],{"type":9,"tag":41,"props":12371,"children":12372},{"style":48},[12373],{"type":14,"value":12374},"      items,\n",{"type":9,"tag":41,"props":12376,"children":12377},{"class":43,"line":434},[12378,12382],{"type":9,"tag":41,"props":12379,"children":12380},{"style":48},[12381],{"type":14,"value":3439},{"type":9,"tag":41,"props":12383,"children":12384},{"style":71},[12385],{"type":14,"value":12386},"'value'\n",{"type":9,"tag":41,"props":12388,"children":12389},{"class":43,"line":505},[12390],{"type":9,"tag":41,"props":12391,"children":12392},{"style":48},[12393],{"type":14,"value":306},{"type":9,"tag":41,"props":12395,"children":12396},{"class":43,"line":523},[12397],{"type":9,"tag":41,"props":12398,"children":12399},{"style":48},[12400],{"type":14,"value":315},{"type":9,"tag":41,"props":12402,"children":12403},{"class":43,"line":542},[12404,12408,12412],{"type":9,"tag":41,"props":12405,"children":12406},{"style":48},[12407],{"type":14,"value":324},{"type":9,"tag":41,"props":12409,"children":12410},{"style":60},[12411],{"type":14,"value":388},{"type":9,"tag":41,"props":12413,"children":12414},{"style":48},[12415],{"type":14,"value":256},{"type":9,"tag":41,"props":12417,"children":12418},{"class":43,"line":560},[12419,12423,12428],{"type":9,"tag":41,"props":12420,"children":12421},{"style":48},[12422],{"type":14,"value":292},{"type":9,"tag":41,"props":12424,"children":12425},{"style":71},[12426],{"type":14,"value":12427},"'输入菜单'",{"type":9,"tag":41,"props":12429,"children":12430},{"style":48},[12431],{"type":14,"value":539},{"type":9,"tag":41,"props":12433,"children":12434},{"class":43,"line":606},[12435,12439,12444],{"type":9,"tag":41,"props":12436,"children":12437},{"style":48},[12438],{"type":14,"value":4231},{"type":9,"tag":41,"props":12440,"children":12441},{"style":71},[12442],{"type":14,"value":12443},"'输入或选择水果'",{"type":9,"tag":41,"props":12445,"children":12446},{"style":48},[12447],{"type":14,"value":539},{"type":9,"tag":41,"props":12449,"children":12450},{"class":43,"line":614},[12451,12455],{"type":9,"tag":41,"props":12452,"children":12453},{"style":48},[12454],{"type":14,"value":1049},{"type":9,"tag":41,"props":12456,"children":12457},{"style":71},[12458],{"type":14,"value":12459},"'支持输入和下拉选择'\n",{"type":9,"tag":41,"props":12461,"children":12462},{"class":43,"line":623},[12463],{"type":9,"tag":41,"props":12464,"children":12465},{"style":48},[12466],{"type":14,"value":414},{"type":9,"tag":41,"props":12468,"children":12469},{"class":43,"line":640},[12470],{"type":9,"tag":41,"props":12471,"children":12472},{"style":48},[12473],{"type":14,"value":423},{"type":9,"tag":41,"props":12475,"children":12476},{"class":43,"line":648},[12477],{"type":9,"tag":41,"props":12478,"children":12479},{"emptyLinePlaceholder":147},[12480],{"type":14,"value":150},{"type":9,"tag":41,"props":12482,"children":12483},{"class":43,"line":665},[12484,12488,12492,12496,12500,12504,12508,12512,12516,12520,12524,12528,12532,12536],{"type":9,"tag":41,"props":12485,"children":12486},{"style":91},[12487],{"type":14,"value":440},{"type":9,"tag":41,"props":12489,"children":12490},{"style":91},[12491],{"type":14,"value":445},{"type":9,"tag":41,"props":12493,"children":12494},{"style":60},[12495],{"type":14,"value":450},{"type":9,"tag":41,"props":12497,"children":12498},{"style":48},[12499],{"type":14,"value":334},{"type":9,"tag":41,"props":12501,"children":12502},{"style":337},[12503],{"type":14,"value":459},{"type":9,"tag":41,"props":12505,"children":12506},{"style":91},[12507],{"type":14,"value":464},{"type":9,"tag":41,"props":12509,"children":12510},{"style":60},[12511],{"type":14,"value":469},{"type":9,"tag":41,"props":12513,"children":12514},{"style":48},[12515],{"type":14,"value":51},{"type":9,"tag":41,"props":12517,"children":12518},{"style":60},[12519],{"type":14,"value":478},{"type":9,"tag":41,"props":12521,"children":12522},{"style":48},[12523],{"type":14,"value":483},{"type":9,"tag":41,"props":12525,"children":12526},{"style":60},[12527],{"type":14,"value":488},{"type":9,"tag":41,"props":12529,"children":12530},{"style":48},[12531],{"type":14,"value":51},{"type":9,"tag":41,"props":12533,"children":12534},{"style":91},[12535],{"type":14,"value":497},{"type":9,"tag":41,"props":12537,"children":12538},{"style":48},[12539],{"type":14,"value":502},{"type":9,"tag":41,"props":12541,"children":12542},{"class":43,"line":738},[12543,12547,12551],{"type":9,"tag":41,"props":12544,"children":12545},{"style":48},[12546],{"type":14,"value":511},{"type":9,"tag":41,"props":12548,"children":12549},{"style":60},[12550],{"type":14,"value":516},{"type":9,"tag":41,"props":12552,"children":12553},{"style":48},[12554],{"type":14,"value":256},{"type":9,"tag":41,"props":12556,"children":12557},{"class":43,"line":3093},[12558,12562,12566],{"type":9,"tag":41,"props":12559,"children":12560},{"style":48},[12561],{"type":14,"value":529},{"type":9,"tag":41,"props":12563,"children":12564},{"style":71},[12565],{"type":14,"value":534},{"type":9,"tag":41,"props":12567,"children":12568},{"style":48},[12569],{"type":14,"value":539},{"type":9,"tag":41,"props":12571,"children":12572},{"class":43,"line":3101},[12573,12577,12581],{"type":9,"tag":41,"props":12574,"children":12575},{"style":48},[12576],{"type":14,"value":548},{"type":9,"tag":41,"props":12578,"children":12579},{"style":71},[12580],{"type":14,"value":553},{"type":9,"tag":41,"props":12582,"children":12583},{"style":48},[12584],{"type":14,"value":539},{"type":9,"tag":41,"props":12586,"children":12587},{"class":43,"line":3117},[12588,12592,12596,12600,12604,12608,12612,12616,12620],{"type":9,"tag":41,"props":12589,"children":12590},{"style":48},[12591],{"type":14,"value":566},{"type":9,"tag":41,"props":12593,"children":12594},{"style":167},[12595],{"type":14,"value":571},{"type":9,"tag":41,"props":12597,"children":12598},{"style":48},[12599],{"type":14,"value":483},{"type":9,"tag":41,"props":12601,"children":12602},{"style":60},[12603],{"type":14,"value":580},{"type":9,"tag":41,"props":12605,"children":12606},{"style":48},[12607],{"type":14,"value":585},{"type":9,"tag":41,"props":12609,"children":12610},{"style":167},[12611],{"type":14,"value":590},{"type":9,"tag":41,"props":12613,"children":12614},{"style":48},[12615],{"type":14,"value":365},{"type":9,"tag":41,"props":12617,"children":12618},{"style":167},[12619],{"type":14,"value":599},{"type":9,"tag":41,"props":12621,"children":12622},{"style":48},[12623],{"type":14,"value":375},{"type":9,"tag":41,"props":12625,"children":12626},{"class":43,"line":3181},[12627],{"type":9,"tag":41,"props":12628,"children":12629},{"style":48},[12630],{"type":14,"value":315},{"type":9,"tag":41,"props":12632,"children":12633},{"class":43,"line":3851},[12634],{"type":9,"tag":41,"props":12635,"children":12636},{"style":48},[12637],{"type":14,"value":620},{"type":9,"tag":41,"props":12639,"children":12640},{"class":43,"line":3915},[12641,12645,12649],{"type":9,"tag":41,"props":12642,"children":12643},{"style":48},[12644],{"type":14,"value":629},{"type":9,"tag":41,"props":12646,"children":12647},{"style":54},[12648],{"type":14,"value":57},{"type":9,"tag":41,"props":12650,"children":12651},{"style":48},[12652],{"type":14,"value":84},{"type":9,"tag":41,"props":12654,"children":12655},{"class":43,"line":9208},[12656],{"type":9,"tag":41,"props":12657,"children":12658},{"emptyLinePlaceholder":147},[12659],{"type":14,"value":150},{"type":9,"tag":41,"props":12661,"children":12662},{"class":43,"line":9216},[12663,12667,12671],{"type":9,"tag":41,"props":12664,"children":12665},{"style":48},[12666],{"type":14,"value":51},{"type":9,"tag":41,"props":12668,"children":12669},{"style":54},[12670],{"type":14,"value":658},{"type":9,"tag":41,"props":12672,"children":12673},{"style":48},[12674],{"type":14,"value":84},{"type":9,"tag":41,"props":12676,"children":12677},{"class":43,"line":9232},[12678,12682,12686,12690,12694,12698,12702,12706,12710,12714,12718,12722,12726,12730,12734],{"type":9,"tag":41,"props":12679,"children":12680},{"style":48},[12681],{"type":14,"value":671},{"type":9,"tag":41,"props":12683,"children":12684},{"style":54},[12685],{"type":14,"value":676},{"type":9,"tag":41,"props":12687,"children":12688},{"style":48},[12689],{"type":14,"value":681},{"type":9,"tag":41,"props":12691,"children":12692},{"style":60},[12693],{"type":14,"value":686},{"type":9,"tag":41,"props":12695,"children":12696},{"style":48},[12697],{"type":14,"value":68},{"type":9,"tag":41,"props":12699,"children":12700},{"style":71},[12701],{"type":14,"value":695},{"type":9,"tag":41,"props":12703,"children":12704},{"style":48},[12705],{"type":14,"value":686},{"type":9,"tag":41,"props":12707,"children":12708},{"style":71},[12709],{"type":14,"value":695},{"type":9,"tag":41,"props":12711,"children":12712},{"style":48},[12713],{"type":14,"value":708},{"type":9,"tag":41,"props":12715,"children":12716},{"style":60},[12717],{"type":14,"value":713},{"type":9,"tag":41,"props":12719,"children":12720},{"style":48},[12721],{"type":14,"value":68},{"type":9,"tag":41,"props":12723,"children":12724},{"style":71},[12725],{"type":14,"value":695},{"type":9,"tag":41,"props":12727,"children":12728},{"style":48},[12729],{"type":14,"value":726},{"type":9,"tag":41,"props":12731,"children":12732},{"style":71},[12733],{"type":14,"value":695},{"type":9,"tag":41,"props":12735,"children":12736},{"style":48},[12737],{"type":14,"value":735},{"type":9,"tag":41,"props":12739,"children":12740},{"class":43,"line":9296},[12741,12745,12749],{"type":9,"tag":41,"props":12742,"children":12743},{"style":48},[12744],{"type":14,"value":629},{"type":9,"tag":41,"props":12746,"children":12747},{"style":54},[12748],{"type":14,"value":658},{"type":9,"tag":41,"props":12750,"children":12751},{"style":48},[12752],{"type":14,"value":84},{"type":9,"tag":753,"props":12754,"children":12755},{},[12756],{"type":14,"value":757},{"title":22,"searchDepth":87,"depth":87,"links":12758},[],{"code":12760,"filePath":12761,"pascalName":12762},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  code: afz.string({\n    type: 'pinInput',\n    controlProps: {\n      length: 6,\n      mask: false\n    }\n  })\n    .length(6, '请输入 6 位验证码')\n    .meta({\n      label: '验证码输入',\n      hint: '输入 6 位验证码'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Ffield-types\u002FAutoFormFieldStringPinInputExample.vue","AutoFormFieldStringPinInputExample",{"data":12764,"body":12765,"toc":13403},{"title":22,"description":22},{"type":6,"children":12766},[12767,13399],{"type":9,"tag":26,"props":12768,"children":12769},{},[12770],{"type":9,"tag":30,"props":12771,"children":12773},{"className":32,"code":12772,"language":34,"meta":22,"style":22},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  code: afz.string({\n    type: 'pinInput',\n    controlProps: {\n      length: 6,\n      mask: false\n    }\n  })\n    .length(6, '请输入 6 位验证码')\n    .meta({\n      label: '验证码输入',\n      hint: '输入 6 位验证码'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n\n",[12774],{"type":9,"tag":37,"props":12775,"children":12776},{"__ignoreMap":22},[12777,12808,12831,12854,12861,12892,12915,12922,12949,12965,12981,12988,13004,13017,13024,13031,13063,13078,13094,13106,13113,13120,13127,13186,13201,13216,13231,13270,13277,13284,13299,13306,13321,13384],{"type":9,"tag":41,"props":12778,"children":12779},{"class":43,"line":44},[12780,12784,12788,12792,12796,12800,12804],{"type":9,"tag":41,"props":12781,"children":12782},{"style":48},[12783],{"type":14,"value":51},{"type":9,"tag":41,"props":12785,"children":12786},{"style":54},[12787],{"type":14,"value":57},{"type":9,"tag":41,"props":12789,"children":12790},{"style":60},[12791],{"type":14,"value":63},{"type":9,"tag":41,"props":12793,"children":12794},{"style":48},[12795],{"type":14,"value":68},{"type":9,"tag":41,"props":12797,"children":12798},{"style":71},[12799],{"type":14,"value":74},{"type":9,"tag":41,"props":12801,"children":12802},{"style":60},[12803],{"type":14,"value":79},{"type":9,"tag":41,"props":12805,"children":12806},{"style":48},[12807],{"type":14,"value":84},{"type":9,"tag":41,"props":12809,"children":12810},{"class":43,"line":87},[12811,12815,12819,12823,12827],{"type":9,"tag":41,"props":12812,"children":12813},{"style":91},[12814],{"type":14,"value":94},{"type":9,"tag":41,"props":12816,"children":12817},{"style":91},[12818],{"type":14,"value":99},{"type":9,"tag":41,"props":12820,"children":12821},{"style":48},[12822],{"type":14,"value":104},{"type":9,"tag":41,"props":12824,"children":12825},{"style":91},[12826],{"type":14,"value":109},{"type":9,"tag":41,"props":12828,"children":12829},{"style":71},[12830],{"type":14,"value":114},{"type":9,"tag":41,"props":12832,"children":12833},{"class":43,"line":117},[12834,12838,12842,12846,12850],{"type":9,"tag":41,"props":12835,"children":12836},{"style":91},[12837],{"type":14,"value":94},{"type":9,"tag":41,"props":12839,"children":12840},{"style":91},[12841],{"type":14,"value":99},{"type":9,"tag":41,"props":12843,"children":12844},{"style":48},[12845],{"type":14,"value":131},{"type":9,"tag":41,"props":12847,"children":12848},{"style":91},[12849],{"type":14,"value":109},{"type":9,"tag":41,"props":12851,"children":12852},{"style":71},[12853],{"type":14,"value":140},{"type":9,"tag":41,"props":12855,"children":12856},{"class":43,"line":143},[12857],{"type":9,"tag":41,"props":12858,"children":12859},{"emptyLinePlaceholder":147},[12860],{"type":14,"value":150},{"type":9,"tag":41,"props":12862,"children":12863},{"class":43,"line":153},[12864,12868,12872,12876,12880,12884,12888],{"type":9,"tag":41,"props":12865,"children":12866},{"style":91},[12867],{"type":14,"value":159},{"type":9,"tag":41,"props":12869,"children":12870},{"style":48},[12871],{"type":14,"value":164},{"type":9,"tag":41,"props":12873,"children":12874},{"style":167},[12875],{"type":14,"value":170},{"type":9,"tag":41,"props":12877,"children":12878},{"style":48},[12879],{"type":14,"value":175},{"type":9,"tag":41,"props":12881,"children":12882},{"style":91},[12883],{"type":14,"value":68},{"type":9,"tag":41,"props":12885,"children":12886},{"style":60},[12887],{"type":14,"value":184},{"type":9,"tag":41,"props":12889,"children":12890},{"style":48},[12891],{"type":14,"value":189},{"type":9,"tag":41,"props":12893,"children":12894},{"class":43,"line":192},[12895,12899,12903,12907,12911],{"type":9,"tag":41,"props":12896,"children":12897},{"style":91},[12898],{"type":14,"value":159},{"type":9,"tag":41,"props":12900,"children":12901},{"style":167},[12902],{"type":14,"value":202},{"type":9,"tag":41,"props":12904,"children":12905},{"style":91},[12906],{"type":14,"value":207},{"type":9,"tag":41,"props":12908,"children":12909},{"style":60},[12910],{"type":14,"value":212},{"type":9,"tag":41,"props":12912,"children":12913},{"style":48},[12914],{"type":14,"value":189},{"type":9,"tag":41,"props":12916,"children":12917},{"class":43,"line":219},[12918],{"type":9,"tag":41,"props":12919,"children":12920},{"emptyLinePlaceholder":147},[12921],{"type":14,"value":150},{"type":9,"tag":41,"props":12923,"children":12924},{"class":43,"line":227},[12925,12929,12933,12937,12941,12945],{"type":9,"tag":41,"props":12926,"children":12927},{"style":91},[12928],{"type":14,"value":159},{"type":9,"tag":41,"props":12930,"children":12931},{"style":167},[12932],{"type":14,"value":237},{"type":9,"tag":41,"props":12934,"children":12935},{"style":91},[12936],{"type":14,"value":207},{"type":9,"tag":41,"props":12938,"children":12939},{"style":48},[12940],{"type":14,"value":246},{"type":9,"tag":41,"props":12942,"children":12943},{"style":60},[12944],{"type":14,"value":251},{"type":9,"tag":41,"props":12946,"children":12947},{"style":48},[12948],{"type":14,"value":256},{"type":9,"tag":41,"props":12950,"children":12951},{"class":43,"line":259},[12952,12957,12961],{"type":9,"tag":41,"props":12953,"children":12954},{"style":48},[12955],{"type":14,"value":12956},"  code: afz.",{"type":9,"tag":41,"props":12958,"children":12959},{"style":60},[12960],{"type":14,"value":11520},{"type":9,"tag":41,"props":12962,"children":12963},{"style":48},[12964],{"type":14,"value":256},{"type":9,"tag":41,"props":12966,"children":12967},{"class":43,"line":277},[12968,12972,12977],{"type":9,"tag":41,"props":12969,"children":12970},{"style":48},[12971],{"type":14,"value":973},{"type":9,"tag":41,"props":12973,"children":12974},{"style":71},[12975],{"type":14,"value":12976},"'pinInput'",{"type":9,"tag":41,"props":12978,"children":12979},{"style":48},[12980],{"type":14,"value":539},{"type":9,"tag":41,"props":12982,"children":12983},{"class":43,"line":286},[12984],{"type":9,"tag":41,"props":12985,"children":12986},{"style":48},[12987],{"type":14,"value":283},{"type":9,"tag":41,"props":12989,"children":12990},{"class":43,"line":300},[12991,12995,13000],{"type":9,"tag":41,"props":12992,"children":12993},{"style":48},[12994],{"type":14,"value":10238},{"type":9,"tag":41,"props":12996,"children":12997},{"style":167},[12998],{"type":14,"value":12999},"6",{"type":9,"tag":41,"props":13001,"children":13002},{"style":48},[13003],{"type":14,"value":539},{"type":9,"tag":41,"props":13005,"children":13006},{"class":43,"line":309},[13007,13012],{"type":9,"tag":41,"props":13008,"children":13009},{"style":48},[13010],{"type":14,"value":13011},"      mask: ",{"type":9,"tag":41,"props":13013,"children":13014},{"style":167},[13015],{"type":14,"value":13016},"false\n",{"type":9,"tag":41,"props":13018,"children":13019},{"class":43,"line":318},[13020],{"type":9,"tag":41,"props":13021,"children":13022},{"style":48},[13023],{"type":14,"value":306},{"type":9,"tag":41,"props":13025,"children":13026},{"class":43,"line":378},[13027],{"type":9,"tag":41,"props":13028,"children":13029},{"style":48},[13030],{"type":14,"value":315},{"type":9,"tag":41,"props":13032,"children":13033},{"class":43,"line":395},[13034,13038,13042,13046,13050,13054,13059],{"type":9,"tag":41,"props":13035,"children":13036},{"style":48},[13037],{"type":14,"value":324},{"type":9,"tag":41,"props":13039,"children":13040},{"style":60},[13041],{"type":14,"value":5804},{"type":9,"tag":41,"props":13043,"children":13044},{"style":48},[13045],{"type":14,"value":334},{"type":9,"tag":41,"props":13047,"children":13048},{"style":167},[13049],{"type":14,"value":12999},{"type":9,"tag":41,"props":13051,"children":13052},{"style":48},[13053],{"type":14,"value":365},{"type":9,"tag":41,"props":13055,"children":13056},{"style":71},[13057],{"type":14,"value":13058},"'请输入 6 位验证码'",{"type":9,"tag":41,"props":13060,"children":13061},{"style":48},[13062],{"type":14,"value":375},{"type":9,"tag":41,"props":13064,"children":13065},{"class":43,"line":408},[13066,13070,13074],{"type":9,"tag":41,"props":13067,"children":13068},{"style":48},[13069],{"type":14,"value":324},{"type":9,"tag":41,"props":13071,"children":13072},{"style":60},[13073],{"type":14,"value":388},{"type":9,"tag":41,"props":13075,"children":13076},{"style":48},[13077],{"type":14,"value":256},{"type":9,"tag":41,"props":13079,"children":13080},{"class":43,"line":417},[13081,13085,13090],{"type":9,"tag":41,"props":13082,"children":13083},{"style":48},[13084],{"type":14,"value":292},{"type":9,"tag":41,"props":13086,"children":13087},{"style":71},[13088],{"type":14,"value":13089},"'验证码输入'",{"type":9,"tag":41,"props":13091,"children":13092},{"style":48},[13093],{"type":14,"value":539},{"type":9,"tag":41,"props":13095,"children":13096},{"class":43,"line":426},[13097,13101],{"type":9,"tag":41,"props":13098,"children":13099},{"style":48},[13100],{"type":14,"value":1049},{"type":9,"tag":41,"props":13102,"children":13103},{"style":71},[13104],{"type":14,"value":13105},"'输入 6 位验证码'\n",{"type":9,"tag":41,"props":13107,"children":13108},{"class":43,"line":434},[13109],{"type":9,"tag":41,"props":13110,"children":13111},{"style":48},[13112],{"type":14,"value":414},{"type":9,"tag":41,"props":13114,"children":13115},{"class":43,"line":505},[13116],{"type":9,"tag":41,"props":13117,"children":13118},{"style":48},[13119],{"type":14,"value":423},{"type":9,"tag":41,"props":13121,"children":13122},{"class":43,"line":523},[13123],{"type":9,"tag":41,"props":13124,"children":13125},{"emptyLinePlaceholder":147},[13126],{"type":14,"value":150},{"type":9,"tag":41,"props":13128,"children":13129},{"class":43,"line":542},[13130,13134,13138,13142,13146,13150,13154,13158,13162,13166,13170,13174,13178,13182],{"type":9,"tag":41,"props":13131,"children":13132},{"style":91},[13133],{"type":14,"value":440},{"type":9,"tag":41,"props":13135,"children":13136},{"style":91},[13137],{"type":14,"value":445},{"type":9,"tag":41,"props":13139,"children":13140},{"style":60},[13141],{"type":14,"value":450},{"type":9,"tag":41,"props":13143,"children":13144},{"style":48},[13145],{"type":14,"value":334},{"type":9,"tag":41,"props":13147,"children":13148},{"style":337},[13149],{"type":14,"value":459},{"type":9,"tag":41,"props":13151,"children":13152},{"style":91},[13153],{"type":14,"value":464},{"type":9,"tag":41,"props":13155,"children":13156},{"style":60},[13157],{"type":14,"value":469},{"type":9,"tag":41,"props":13159,"children":13160},{"style":48},[13161],{"type":14,"value":51},{"type":9,"tag":41,"props":13163,"children":13164},{"style":60},[13165],{"type":14,"value":478},{"type":9,"tag":41,"props":13167,"children":13168},{"style":48},[13169],{"type":14,"value":483},{"type":9,"tag":41,"props":13171,"children":13172},{"style":60},[13173],{"type":14,"value":488},{"type":9,"tag":41,"props":13175,"children":13176},{"style":48},[13177],{"type":14,"value":51},{"type":9,"tag":41,"props":13179,"children":13180},{"style":91},[13181],{"type":14,"value":497},{"type":9,"tag":41,"props":13183,"children":13184},{"style":48},[13185],{"type":14,"value":502},{"type":9,"tag":41,"props":13187,"children":13188},{"class":43,"line":560},[13189,13193,13197],{"type":9,"tag":41,"props":13190,"children":13191},{"style":48},[13192],{"type":14,"value":511},{"type":9,"tag":41,"props":13194,"children":13195},{"style":60},[13196],{"type":14,"value":516},{"type":9,"tag":41,"props":13198,"children":13199},{"style":48},[13200],{"type":14,"value":256},{"type":9,"tag":41,"props":13202,"children":13203},{"class":43,"line":606},[13204,13208,13212],{"type":9,"tag":41,"props":13205,"children":13206},{"style":48},[13207],{"type":14,"value":529},{"type":9,"tag":41,"props":13209,"children":13210},{"style":71},[13211],{"type":14,"value":534},{"type":9,"tag":41,"props":13213,"children":13214},{"style":48},[13215],{"type":14,"value":539},{"type":9,"tag":41,"props":13217,"children":13218},{"class":43,"line":614},[13219,13223,13227],{"type":9,"tag":41,"props":13220,"children":13221},{"style":48},[13222],{"type":14,"value":548},{"type":9,"tag":41,"props":13224,"children":13225},{"style":71},[13226],{"type":14,"value":553},{"type":9,"tag":41,"props":13228,"children":13229},{"style":48},[13230],{"type":14,"value":539},{"type":9,"tag":41,"props":13232,"children":13233},{"class":43,"line":623},[13234,13238,13242,13246,13250,13254,13258,13262,13266],{"type":9,"tag":41,"props":13235,"children":13236},{"style":48},[13237],{"type":14,"value":566},{"type":9,"tag":41,"props":13239,"children":13240},{"style":167},[13241],{"type":14,"value":571},{"type":9,"tag":41,"props":13243,"children":13244},{"style":48},[13245],{"type":14,"value":483},{"type":9,"tag":41,"props":13247,"children":13248},{"style":60},[13249],{"type":14,"value":580},{"type":9,"tag":41,"props":13251,"children":13252},{"style":48},[13253],{"type":14,"value":585},{"type":9,"tag":41,"props":13255,"children":13256},{"style":167},[13257],{"type":14,"value":590},{"type":9,"tag":41,"props":13259,"children":13260},{"style":48},[13261],{"type":14,"value":365},{"type":9,"tag":41,"props":13263,"children":13264},{"style":167},[13265],{"type":14,"value":599},{"type":9,"tag":41,"props":13267,"children":13268},{"style":48},[13269],{"type":14,"value":375},{"type":9,"tag":41,"props":13271,"children":13272},{"class":43,"line":640},[13273],{"type":9,"tag":41,"props":13274,"children":13275},{"style":48},[13276],{"type":14,"value":315},{"type":9,"tag":41,"props":13278,"children":13279},{"class":43,"line":648},[13280],{"type":9,"tag":41,"props":13281,"children":13282},{"style":48},[13283],{"type":14,"value":620},{"type":9,"tag":41,"props":13285,"children":13286},{"class":43,"line":665},[13287,13291,13295],{"type":9,"tag":41,"props":13288,"children":13289},{"style":48},[13290],{"type":14,"value":629},{"type":9,"tag":41,"props":13292,"children":13293},{"style":54},[13294],{"type":14,"value":57},{"type":9,"tag":41,"props":13296,"children":13297},{"style":48},[13298],{"type":14,"value":84},{"type":9,"tag":41,"props":13300,"children":13301},{"class":43,"line":738},[13302],{"type":9,"tag":41,"props":13303,"children":13304},{"emptyLinePlaceholder":147},[13305],{"type":14,"value":150},{"type":9,"tag":41,"props":13307,"children":13308},{"class":43,"line":3093},[13309,13313,13317],{"type":9,"tag":41,"props":13310,"children":13311},{"style":48},[13312],{"type":14,"value":51},{"type":9,"tag":41,"props":13314,"children":13315},{"style":54},[13316],{"type":14,"value":658},{"type":9,"tag":41,"props":13318,"children":13319},{"style":48},[13320],{"type":14,"value":84},{"type":9,"tag":41,"props":13322,"children":13323},{"class":43,"line":3101},[13324,13328,13332,13336,13340,13344,13348,13352,13356,13360,13364,13368,13372,13376,13380],{"type":9,"tag":41,"props":13325,"children":13326},{"style":48},[13327],{"type":14,"value":671},{"type":9,"tag":41,"props":13329,"children":13330},{"style":54},[13331],{"type":14,"value":676},{"type":9,"tag":41,"props":13333,"children":13334},{"style":48},[13335],{"type":14,"value":681},{"type":9,"tag":41,"props":13337,"children":13338},{"style":60},[13339],{"type":14,"value":686},{"type":9,"tag":41,"props":13341,"children":13342},{"style":48},[13343],{"type":14,"value":68},{"type":9,"tag":41,"props":13345,"children":13346},{"style":71},[13347],{"type":14,"value":695},{"type":9,"tag":41,"props":13349,"children":13350},{"style":48},[13351],{"type":14,"value":686},{"type":9,"tag":41,"props":13353,"children":13354},{"style":71},[13355],{"type":14,"value":695},{"type":9,"tag":41,"props":13357,"children":13358},{"style":48},[13359],{"type":14,"value":708},{"type":9,"tag":41,"props":13361,"children":13362},{"style":60},[13363],{"type":14,"value":713},{"type":9,"tag":41,"props":13365,"children":13366},{"style":48},[13367],{"type":14,"value":68},{"type":9,"tag":41,"props":13369,"children":13370},{"style":71},[13371],{"type":14,"value":695},{"type":9,"tag":41,"props":13373,"children":13374},{"style":48},[13375],{"type":14,"value":726},{"type":9,"tag":41,"props":13377,"children":13378},{"style":71},[13379],{"type":14,"value":695},{"type":9,"tag":41,"props":13381,"children":13382},{"style":48},[13383],{"type":14,"value":735},{"type":9,"tag":41,"props":13385,"children":13386},{"class":43,"line":3117},[13387,13391,13395],{"type":9,"tag":41,"props":13388,"children":13389},{"style":48},[13390],{"type":14,"value":629},{"type":9,"tag":41,"props":13392,"children":13393},{"style":54},[13394],{"type":14,"value":658},{"type":9,"tag":41,"props":13396,"children":13397},{"style":48},[13398],{"type":14,"value":84},{"type":9,"tag":753,"props":13400,"children":13401},{},[13402],{"type":14,"value":757},{"title":22,"searchDepth":87,"depth":87,"links":13404},[],{"code":13406,"filePath":13407,"pascalName":13408},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  description: afz.string({\n    type: 'textarea',\n    controlProps: {\n      maxrows: 2,\n      autoresize: true\n    }\n  })\n    .min(10, '至少 10 个字符')\n    .meta({\n      label: '文本域',\n      placeholder: '请输入多行文本...',\n      hint: '这是一个长文本,将自动调整高度,最多 2 行。'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Ffield-types\u002FAutoFormFieldStringTextareaExample.vue","AutoFormFieldStringTextareaExample",{"data":13410,"body":13411,"toc":14064},{"title":22,"description":22},{"type":6,"children":13412},[13413,14060],{"type":9,"tag":26,"props":13414,"children":13415},{},[13416],{"type":9,"tag":30,"props":13417,"children":13419},{"className":32,"code":13418,"language":34,"meta":22,"style":22},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  description: afz.string({\n    type: 'textarea',\n    controlProps: {\n      maxrows: 2,\n      autoresize: true\n    }\n  })\n    .min(10, '至少 10 个字符')\n    .meta({\n      label: '文本域',\n      placeholder: '请输入多行文本...',\n      hint: '这是一个长文本,将自动调整高度,最多 2 行。'\n    })\n})\n\nasync function onSubmit(event: FormSubmitEvent\u003Cz.output\u003Ctypeof schema>>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n\n",[13420],{"type":9,"tag":37,"props":13421,"children":13422},{"__ignoreMap":22},[13423,13454,13477,13500,13507,13538,13561,13568,13595,13611,13627,13634,13650,13662,13669,13676,13708,13723,13739,13755,13767,13774,13781,13788,13847,13862,13877,13892,13931,13938,13945,13960,13967,13982,14045],{"type":9,"tag":41,"props":13424,"children":13425},{"class":43,"line":44},[13426,13430,13434,13438,13442,13446,13450],{"type":9,"tag":41,"props":13427,"children":13428},{"style":48},[13429],{"type":14,"value":51},{"type":9,"tag":41,"props":13431,"children":13432},{"style":54},[13433],{"type":14,"value":57},{"type":9,"tag":41,"props":13435,"children":13436},{"style":60},[13437],{"type":14,"value":63},{"type":9,"tag":41,"props":13439,"children":13440},{"style":48},[13441],{"type":14,"value":68},{"type":9,"tag":41,"props":13443,"children":13444},{"style":71},[13445],{"type":14,"value":74},{"type":9,"tag":41,"props":13447,"children":13448},{"style":60},[13449],{"type":14,"value":79},{"type":9,"tag":41,"props":13451,"children":13452},{"style":48},[13453],{"type":14,"value":84},{"type":9,"tag":41,"props":13455,"children":13456},{"class":43,"line":87},[13457,13461,13465,13469,13473],{"type":9,"tag":41,"props":13458,"children":13459},{"style":91},[13460],{"type":14,"value":94},{"type":9,"tag":41,"props":13462,"children":13463},{"style":91},[13464],{"type":14,"value":99},{"type":9,"tag":41,"props":13466,"children":13467},{"style":48},[13468],{"type":14,"value":104},{"type":9,"tag":41,"props":13470,"children":13471},{"style":91},[13472],{"type":14,"value":109},{"type":9,"tag":41,"props":13474,"children":13475},{"style":71},[13476],{"type":14,"value":114},{"type":9,"tag":41,"props":13478,"children":13479},{"class":43,"line":117},[13480,13484,13488,13492,13496],{"type":9,"tag":41,"props":13481,"children":13482},{"style":91},[13483],{"type":14,"value":94},{"type":9,"tag":41,"props":13485,"children":13486},{"style":91},[13487],{"type":14,"value":99},{"type":9,"tag":41,"props":13489,"children":13490},{"style":48},[13491],{"type":14,"value":131},{"type":9,"tag":41,"props":13493,"children":13494},{"style":91},[13495],{"type":14,"value":109},{"type":9,"tag":41,"props":13497,"children":13498},{"style":71},[13499],{"type":14,"value":140},{"type":9,"tag":41,"props":13501,"children":13502},{"class":43,"line":143},[13503],{"type":9,"tag":41,"props":13504,"children":13505},{"emptyLinePlaceholder":147},[13506],{"type":14,"value":150},{"type":9,"tag":41,"props":13508,"children":13509},{"class":43,"line":153},[13510,13514,13518,13522,13526,13530,13534],{"type":9,"tag":41,"props":13511,"children":13512},{"style":91},[13513],{"type":14,"value":159},{"type":9,"tag":41,"props":13515,"children":13516},{"style":48},[13517],{"type":14,"value":164},{"type":9,"tag":41,"props":13519,"children":13520},{"style":167},[13521],{"type":14,"value":170},{"type":9,"tag":41,"props":13523,"children":13524},{"style":48},[13525],{"type":14,"value":175},{"type":9,"tag":41,"props":13527,"children":13528},{"style":91},[13529],{"type":14,"value":68},{"type":9,"tag":41,"props":13531,"children":13532},{"style":60},[13533],{"type":14,"value":184},{"type":9,"tag":41,"props":13535,"children":13536},{"style":48},[13537],{"type":14,"value":189},{"type":9,"tag":41,"props":13539,"children":13540},{"class":43,"line":192},[13541,13545,13549,13553,13557],{"type":9,"tag":41,"props":13542,"children":13543},{"style":91},[13544],{"type":14,"value":159},{"type":9,"tag":41,"props":13546,"children":13547},{"style":167},[13548],{"type":14,"value":202},{"type":9,"tag":41,"props":13550,"children":13551},{"style":91},[13552],{"type":14,"value":207},{"type":9,"tag":41,"props":13554,"children":13555},{"style":60},[13556],{"type":14,"value":212},{"type":9,"tag":41,"props":13558,"children":13559},{"style":48},[13560],{"type":14,"value":189},{"type":9,"tag":41,"props":13562,"children":13563},{"class":43,"line":219},[13564],{"type":9,"tag":41,"props":13565,"children":13566},{"emptyLinePlaceholder":147},[13567],{"type":14,"value":150},{"type":9,"tag":41,"props":13569,"children":13570},{"class":43,"line":227},[13571,13575,13579,13583,13587,13591],{"type":9,"tag":41,"props":13572,"children":13573},{"style":91},[13574],{"type":14,"value":159},{"type":9,"tag":41,"props":13576,"children":13577},{"style":167},[13578],{"type":14,"value":237},{"type":9,"tag":41,"props":13580,"children":13581},{"style":91},[13582],{"type":14,"value":207},{"type":9,"tag":41,"props":13584,"children":13585},{"style":48},[13586],{"type":14,"value":246},{"type":9,"tag":41,"props":13588,"children":13589},{"style":60},[13590],{"type":14,"value":251},{"type":9,"tag":41,"props":13592,"children":13593},{"style":48},[13594],{"type":14,"value":256},{"type":9,"tag":41,"props":13596,"children":13597},{"class":43,"line":259},[13598,13603,13607],{"type":9,"tag":41,"props":13599,"children":13600},{"style":48},[13601],{"type":14,"value":13602},"  description: afz.",{"type":9,"tag":41,"props":13604,"children":13605},{"style":60},[13606],{"type":14,"value":11520},{"type":9,"tag":41,"props":13608,"children":13609},{"style":48},[13610],{"type":14,"value":256},{"type":9,"tag":41,"props":13612,"children":13613},{"class":43,"line":277},[13614,13618,13623],{"type":9,"tag":41,"props":13615,"children":13616},{"style":48},[13617],{"type":14,"value":973},{"type":9,"tag":41,"props":13619,"children":13620},{"style":71},[13621],{"type":14,"value":13622},"'textarea'",{"type":9,"tag":41,"props":13624,"children":13625},{"style":48},[13626],{"type":14,"value":539},{"type":9,"tag":41,"props":13628,"children":13629},{"class":43,"line":286},[13630],{"type":9,"tag":41,"props":13631,"children":13632},{"style":48},[13633],{"type":14,"value":283},{"type":9,"tag":41,"props":13635,"children":13636},{"class":43,"line":300},[13637,13642,13646],{"type":9,"tag":41,"props":13638,"children":13639},{"style":48},[13640],{"type":14,"value":13641},"      maxrows: ",{"type":9,"tag":41,"props":13643,"children":13644},{"style":167},[13645],{"type":14,"value":599},{"type":9,"tag":41,"props":13647,"children":13648},{"style":48},[13649],{"type":14,"value":539},{"type":9,"tag":41,"props":13651,"children":13652},{"class":43,"line":309},[13653,13658],{"type":9,"tag":41,"props":13654,"children":13655},{"style":48},[13656],{"type":14,"value":13657},"      autoresize: ",{"type":9,"tag":41,"props":13659,"children":13660},{"style":167},[13661],{"type":14,"value":7391},{"type":9,"tag":41,"props":13663,"children":13664},{"class":43,"line":318},[13665],{"type":9,"tag":41,"props":13666,"children":13667},{"style":48},[13668],{"type":14,"value":306},{"type":9,"tag":41,"props":13670,"children":13671},{"class":43,"line":378},[13672],{"type":9,"tag":41,"props":13673,"children":13674},{"style":48},[13675],{"type":14,"value":315},{"type":9,"tag":41,"props":13677,"children":13678},{"class":43,"line":395},[13679,13683,13687,13691,13695,13699,13704],{"type":9,"tag":41,"props":13680,"children":13681},{"style":48},[13682],{"type":14,"value":324},{"type":9,"tag":41,"props":13684,"children":13685},{"style":60},[13686],{"type":14,"value":5538},{"type":9,"tag":41,"props":13688,"children":13689},{"style":48},[13690],{"type":14,"value":334},{"type":9,"tag":41,"props":13692,"children":13693},{"style":167},[13694],{"type":14,"value":10309},{"type":9,"tag":41,"props":13696,"children":13697},{"style":48},[13698],{"type":14,"value":365},{"type":9,"tag":41,"props":13700,"children":13701},{"style":71},[13702],{"type":14,"value":13703},"'至少 10 个字符'",{"type":9,"tag":41,"props":13705,"children":13706},{"style":48},[13707],{"type":14,"value":375},{"type":9,"tag":41,"props":13709,"children":13710},{"class":43,"line":408},[13711,13715,13719],{"type":9,"tag":41,"props":13712,"children":13713},{"style":48},[13714],{"type":14,"value":324},{"type":9,"tag":41,"props":13716,"children":13717},{"style":60},[13718],{"type":14,"value":388},{"type":9,"tag":41,"props":13720,"children":13721},{"style":48},[13722],{"type":14,"value":256},{"type":9,"tag":41,"props":13724,"children":13725},{"class":43,"line":417},[13726,13730,13735],{"type":9,"tag":41,"props":13727,"children":13728},{"style":48},[13729],{"type":14,"value":292},{"type":9,"tag":41,"props":13731,"children":13732},{"style":71},[13733],{"type":14,"value":13734},"'文本域'",{"type":9,"tag":41,"props":13736,"children":13737},{"style":48},[13738],{"type":14,"value":539},{"type":9,"tag":41,"props":13740,"children":13741},{"class":43,"line":426},[13742,13746,13751],{"type":9,"tag":41,"props":13743,"children":13744},{"style":48},[13745],{"type":14,"value":4231},{"type":9,"tag":41,"props":13747,"children":13748},{"style":71},[13749],{"type":14,"value":13750},"'请输入多行文本...'",{"type":9,"tag":41,"props":13752,"children":13753},{"style":48},[13754],{"type":14,"value":539},{"type":9,"tag":41,"props":13756,"children":13757},{"class":43,"line":434},[13758,13762],{"type":9,"tag":41,"props":13759,"children":13760},{"style":48},[13761],{"type":14,"value":1049},{"type":9,"tag":41,"props":13763,"children":13764},{"style":71},[13765],{"type":14,"value":13766},"'这是一个长文本,将自动调整高度,最多 2 行。'\n",{"type":9,"tag":41,"props":13768,"children":13769},{"class":43,"line":505},[13770],{"type":9,"tag":41,"props":13771,"children":13772},{"style":48},[13773],{"type":14,"value":414},{"type":9,"tag":41,"props":13775,"children":13776},{"class":43,"line":523},[13777],{"type":9,"tag":41,"props":13778,"children":13779},{"style":48},[13780],{"type":14,"value":423},{"type":9,"tag":41,"props":13782,"children":13783},{"class":43,"line":542},[13784],{"type":9,"tag":41,"props":13785,"children":13786},{"emptyLinePlaceholder":147},[13787],{"type":14,"value":150},{"type":9,"tag":41,"props":13789,"children":13790},{"class":43,"line":560},[13791,13795,13799,13803,13807,13811,13815,13819,13823,13827,13831,13835,13839,13843],{"type":9,"tag":41,"props":13792,"children":13793},{"style":91},[13794],{"type":14,"value":440},{"type":9,"tag":41,"props":13796,"children":13797},{"style":91},[13798],{"type":14,"value":445},{"type":9,"tag":41,"props":13800,"children":13801},{"style":60},[13802],{"type":14,"value":450},{"type":9,"tag":41,"props":13804,"children":13805},{"style":48},[13806],{"type":14,"value":334},{"type":9,"tag":41,"props":13808,"children":13809},{"style":337},[13810],{"type":14,"value":459},{"type":9,"tag":41,"props":13812,"children":13813},{"style":91},[13814],{"type":14,"value":464},{"type":9,"tag":41,"props":13816,"children":13817},{"style":60},[13818],{"type":14,"value":469},{"type":9,"tag":41,"props":13820,"children":13821},{"style":48},[13822],{"type":14,"value":51},{"type":9,"tag":41,"props":13824,"children":13825},{"style":60},[13826],{"type":14,"value":478},{"type":9,"tag":41,"props":13828,"children":13829},{"style":48},[13830],{"type":14,"value":483},{"type":9,"tag":41,"props":13832,"children":13833},{"style":60},[13834],{"type":14,"value":488},{"type":9,"tag":41,"props":13836,"children":13837},{"style":48},[13838],{"type":14,"value":51},{"type":9,"tag":41,"props":13840,"children":13841},{"style":91},[13842],{"type":14,"value":497},{"type":9,"tag":41,"props":13844,"children":13845},{"style":48},[13846],{"type":14,"value":502},{"type":9,"tag":41,"props":13848,"children":13849},{"class":43,"line":606},[13850,13854,13858],{"type":9,"tag":41,"props":13851,"children":13852},{"style":48},[13853],{"type":14,"value":511},{"type":9,"tag":41,"props":13855,"children":13856},{"style":60},[13857],{"type":14,"value":516},{"type":9,"tag":41,"props":13859,"children":13860},{"style":48},[13861],{"type":14,"value":256},{"type":9,"tag":41,"props":13863,"children":13864},{"class":43,"line":614},[13865,13869,13873],{"type":9,"tag":41,"props":13866,"children":13867},{"style":48},[13868],{"type":14,"value":529},{"type":9,"tag":41,"props":13870,"children":13871},{"style":71},[13872],{"type":14,"value":534},{"type":9,"tag":41,"props":13874,"children":13875},{"style":48},[13876],{"type":14,"value":539},{"type":9,"tag":41,"props":13878,"children":13879},{"class":43,"line":623},[13880,13884,13888],{"type":9,"tag":41,"props":13881,"children":13882},{"style":48},[13883],{"type":14,"value":548},{"type":9,"tag":41,"props":13885,"children":13886},{"style":71},[13887],{"type":14,"value":553},{"type":9,"tag":41,"props":13889,"children":13890},{"style":48},[13891],{"type":14,"value":539},{"type":9,"tag":41,"props":13893,"children":13894},{"class":43,"line":640},[13895,13899,13903,13907,13911,13915,13919,13923,13927],{"type":9,"tag":41,"props":13896,"children":13897},{"style":48},[13898],{"type":14,"value":566},{"type":9,"tag":41,"props":13900,"children":13901},{"style":167},[13902],{"type":14,"value":571},{"type":9,"tag":41,"props":13904,"children":13905},{"style":48},[13906],{"type":14,"value":483},{"type":9,"tag":41,"props":13908,"children":13909},{"style":60},[13910],{"type":14,"value":580},{"type":9,"tag":41,"props":13912,"children":13913},{"style":48},[13914],{"type":14,"value":585},{"type":9,"tag":41,"props":13916,"children":13917},{"style":167},[13918],{"type":14,"value":590},{"type":9,"tag":41,"props":13920,"children":13921},{"style":48},[13922],{"type":14,"value":365},{"type":9,"tag":41,"props":13924,"children":13925},{"style":167},[13926],{"type":14,"value":599},{"type":9,"tag":41,"props":13928,"children":13929},{"style":48},[13930],{"type":14,"value":375},{"type":9,"tag":41,"props":13932,"children":13933},{"class":43,"line":648},[13934],{"type":9,"tag":41,"props":13935,"children":13936},{"style":48},[13937],{"type":14,"value":315},{"type":9,"tag":41,"props":13939,"children":13940},{"class":43,"line":665},[13941],{"type":9,"tag":41,"props":13942,"children":13943},{"style":48},[13944],{"type":14,"value":620},{"type":9,"tag":41,"props":13946,"children":13947},{"class":43,"line":738},[13948,13952,13956],{"type":9,"tag":41,"props":13949,"children":13950},{"style":48},[13951],{"type":14,"value":629},{"type":9,"tag":41,"props":13953,"children":13954},{"style":54},[13955],{"type":14,"value":57},{"type":9,"tag":41,"props":13957,"children":13958},{"style":48},[13959],{"type":14,"value":84},{"type":9,"tag":41,"props":13961,"children":13962},{"class":43,"line":3093},[13963],{"type":9,"tag":41,"props":13964,"children":13965},{"emptyLinePlaceholder":147},[13966],{"type":14,"value":150},{"type":9,"tag":41,"props":13968,"children":13969},{"class":43,"line":3101},[13970,13974,13978],{"type":9,"tag":41,"props":13971,"children":13972},{"style":48},[13973],{"type":14,"value":51},{"type":9,"tag":41,"props":13975,"children":13976},{"style":54},[13977],{"type":14,"value":658},{"type":9,"tag":41,"props":13979,"children":13980},{"style":48},[13981],{"type":14,"value":84},{"type":9,"tag":41,"props":13983,"children":13984},{"class":43,"line":3117},[13985,13989,13993,13997,14001,14005,14009,14013,14017,14021,14025,14029,14033,14037,14041],{"type":9,"tag":41,"props":13986,"children":13987},{"style":48},[13988],{"type":14,"value":671},{"type":9,"tag":41,"props":13990,"children":13991},{"style":54},[13992],{"type":14,"value":676},{"type":9,"tag":41,"props":13994,"children":13995},{"style":48},[13996],{"type":14,"value":681},{"type":9,"tag":41,"props":13998,"children":13999},{"style":60},[14000],{"type":14,"value":686},{"type":9,"tag":41,"props":14002,"children":14003},{"style":48},[14004],{"type":14,"value":68},{"type":9,"tag":41,"props":14006,"children":14007},{"style":71},[14008],{"type":14,"value":695},{"type":9,"tag":41,"props":14010,"children":14011},{"style":48},[14012],{"type":14,"value":686},{"type":9,"tag":41,"props":14014,"children":14015},{"style":71},[14016],{"type":14,"value":695},{"type":9,"tag":41,"props":14018,"children":14019},{"style":48},[14020],{"type":14,"value":708},{"type":9,"tag":41,"props":14022,"children":14023},{"style":60},[14024],{"type":14,"value":713},{"type":9,"tag":41,"props":14026,"children":14027},{"style":48},[14028],{"type":14,"value":68},{"type":9,"tag":41,"props":14030,"children":14031},{"style":71},[14032],{"type":14,"value":695},{"type":9,"tag":41,"props":14034,"children":14035},{"style":48},[14036],{"type":14,"value":726},{"type":9,"tag":41,"props":14038,"children":14039},{"style":71},[14040],{"type":14,"value":695},{"type":9,"tag":41,"props":14042,"children":14043},{"style":48},[14044],{"type":14,"value":735},{"type":9,"tag":41,"props":14046,"children":14047},{"class":43,"line":3181},[14048,14052,14056],{"type":9,"tag":41,"props":14049,"children":14050},{"style":48},[14051],{"type":14,"value":629},{"type":9,"tag":41,"props":14053,"children":14054},{"style":54},[14055],{"type":14,"value":658},{"type":9,"tag":41,"props":14057,"children":14058},{"style":48},[14059],{"type":14,"value":84},{"type":9,"tag":753,"props":14061,"children":14062},{},[14063],{"type":14,"value":757},{"title":22,"searchDepth":87,"depth":87,"links":14065},[],{"code":14067,"filePath":14068,"pascalName":14069},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type z from 'zod'\n\nconst props = defineProps\u003C{\n  type: 'string' | 'textarea'\n  size: 'sm' | 'xs' | 'md' | 'lg' | 'xl'\n  color: 'error' | 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'neutral'\n  rows?: number\n  maxLength?: number\n}>()\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst resolvedControlProps = computed(() => ({\n  leadingIcon: 'i-lucide-type',\n  color: props.color,\n  rows: props.rows,\n  maxlength: props.maxLength\n}))\n\nconst schema = computed(() => (afz.object({\n  stringWithType: afz.string({\n    type: props.type,\n    controlProps: resolvedControlProps.value\n  }).meta({\n    size: props.size\n  }).optional()\n})))\n\ntype Schema = z.output\u003Ctypeof schema.value>\n\nconst form = ref\u003CPartial\u003CSchema>>({})\n\nasync function onSubmit(event: FormSubmitEvent\u003CSchema>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CUCard class=\"w-lg\">\n    \u003CMAutoForm\n      v-model=\"form\"\n      :schema=\"schema\"\n      :submit-button-props=\"{\n        color\n      }\"\n      @submit=\"onSubmit\"\n    \u002F>\n  \u003C\u002FUCard>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Ffield-types\u002FAutoFormFieldStringTypeExample.vue","AutoFormFieldStringTypeExample",{"data":14071,"body":14072,"toc":15180},{"title":22,"description":22},{"type":6,"children":14073},[14074,15176],{"type":9,"tag":26,"props":14075,"children":14076},{},[14077],{"type":9,"tag":30,"props":14078,"children":14080},{"className":32,"code":14079,"language":34,"meta":22,"style":22},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type z from 'zod'\n\nconst props = defineProps\u003C{\n  type: 'string' | 'textarea'\n  size: 'sm' | 'xs' | 'md' | 'lg' | 'xl'\n  color: 'error' | 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'neutral'\n  rows?: number\n  maxLength?: number\n}>()\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst resolvedControlProps = computed(() => ({\n  leadingIcon: 'i-lucide-type',\n  color: props.color,\n  rows: props.rows,\n  maxlength: props.maxLength\n}))\n\nconst schema = computed(() => (afz.object({\n  stringWithType: afz.string({\n    type: props.type,\n    controlProps: resolvedControlProps.value\n  }).meta({\n    size: props.size\n  }).optional()\n})))\n\ntype Schema = z.output\u003Ctypeof schema.value>\n\nconst form = ref\u003CPartial\u003CSchema>>({})\n\nasync function onSubmit(event: FormSubmitEvent\u003CSchema>) {\n  toast.add({\n    title: 'Success',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CUCard class=\"w-lg\">\n    \u003CMAutoForm\n      v-model=\"form\"\n      :schema=\"schema\"\n      :submit-button-props=\"{\n        color\n      }\"\n      @submit=\"onSubmit\"\n    \u002F>\n  \u003C\u002FUCard>\n\u003C\u002Ftemplate>\n\n",[14081],{"type":9,"tag":37,"props":14082,"children":14083},{"__ignoreMap":22},[14084,14115,14138,14162,14169,14195,14222,14275,14346,14364,14380,14388,14395,14426,14449,14456,14492,14513,14521,14529,14537,14545,14552,14592,14608,14616,14624,14639,14647,14662,14670,14677,14717,14724,14767,14774,14817,14832,14847,14862,14901,14908,14916,14932,14940,14956,14987,15001,15028,15057,15083,15092,15105,15134,15143,15160],{"type":9,"tag":41,"props":14085,"children":14086},{"class":43,"line":44},[14087,14091,14095,14099,14103,14107,14111],{"type":9,"tag":41,"props":14088,"children":14089},{"style":48},[14090],{"type":14,"value":51},{"type":9,"tag":41,"props":14092,"children":14093},{"style":54},[14094],{"type":14,"value":57},{"type":9,"tag":41,"props":14096,"children":14097},{"style":60},[14098],{"type":14,"value":63},{"type":9,"tag":41,"props":14100,"children":14101},{"style":48},[14102],{"type":14,"value":68},{"type":9,"tag":41,"props":14104,"children":14105},{"style":71},[14106],{"type":14,"value":74},{"type":9,"tag":41,"props":14108,"children":14109},{"style":60},[14110],{"type":14,"value":79},{"type":9,"tag":41,"props":14112,"children":14113},{"style":48},[14114],{"type":14,"value":84},{"type":9,"tag":41,"props":14116,"children":14117},{"class":43,"line":87},[14118,14122,14126,14130,14134],{"type":9,"tag":41,"props":14119,"children":14120},{"style":91},[14121],{"type":14,"value":94},{"type":9,"tag":41,"props":14123,"children":14124},{"style":91},[14125],{"type":14,"value":99},{"type":9,"tag":41,"props":14127,"children":14128},{"style":48},[14129],{"type":14,"value":104},{"type":9,"tag":41,"props":14131,"children":14132},{"style":91},[14133],{"type":14,"value":109},{"type":9,"tag":41,"props":14135,"children":14136},{"style":71},[14137],{"type":14,"value":114},{"type":9,"tag":41,"props":14139,"children":14140},{"class":43,"line":117},[14141,14145,14149,14154,14158],{"type":9,"tag":41,"props":14142,"children":14143},{"style":91},[14144],{"type":14,"value":94},{"type":9,"tag":41,"props":14146,"children":14147},{"style":91},[14148],{"type":14,"value":99},{"type":9,"tag":41,"props":14150,"children":14151},{"style":48},[14152],{"type":14,"value":14153}," z ",{"type":9,"tag":41,"props":14155,"children":14156},{"style":91},[14157],{"type":14,"value":109},{"type":9,"tag":41,"props":14159,"children":14160},{"style":71},[14161],{"type":14,"value":140},{"type":9,"tag":41,"props":14163,"children":14164},{"class":43,"line":143},[14165],{"type":9,"tag":41,"props":14166,"children":14167},{"emptyLinePlaceholder":147},[14168],{"type":14,"value":150},{"type":9,"tag":41,"props":14170,"children":14171},{"class":43,"line":153},[14172,14176,14181,14185,14190],{"type":9,"tag":41,"props":14173,"children":14174},{"style":91},[14175],{"type":14,"value":159},{"type":9,"tag":41,"props":14177,"children":14178},{"style":167},[14179],{"type":14,"value":14180}," props",{"type":9,"tag":41,"props":14182,"children":14183},{"style":91},[14184],{"type":14,"value":207},{"type":9,"tag":41,"props":14186,"children":14187},{"style":60},[14188],{"type":14,"value":14189}," defineProps",{"type":9,"tag":41,"props":14191,"children":14192},{"style":48},[14193],{"type":14,"value":14194},"\u003C{\n",{"type":9,"tag":41,"props":14196,"children":14197},{"class":43,"line":192},[14198,14203,14207,14212,14217],{"type":9,"tag":41,"props":14199,"children":14200},{"style":337},[14201],{"type":14,"value":14202},"  type",{"type":9,"tag":41,"props":14204,"children":14205},{"style":91},[14206],{"type":14,"value":464},{"type":9,"tag":41,"props":14208,"children":14209},{"style":71},[14210],{"type":14,"value":14211}," 'string'",{"type":9,"tag":41,"props":14213,"children":14214},{"style":91},[14215],{"type":14,"value":14216}," |",{"type":9,"tag":41,"props":14218,"children":14219},{"style":71},[14220],{"type":14,"value":14221}," 'textarea'\n",{"type":9,"tag":41,"props":14223,"children":14224},{"class":43,"line":219},[14225,14230,14234,14239,14243,14248,14252,14257,14261,14266,14270],{"type":9,"tag":41,"props":14226,"children":14227},{"style":337},[14228],{"type":14,"value":14229},"  size",{"type":9,"tag":41,"props":14231,"children":14232},{"style":91},[14233],{"type":14,"value":464},{"type":9,"tag":41,"props":14235,"children":14236},{"style":71},[14237],{"type":14,"value":14238}," 'sm'",{"type":9,"tag":41,"props":14240,"children":14241},{"style":91},[14242],{"type":14,"value":14216},{"type":9,"tag":41,"props":14244,"children":14245},{"style":71},[14246],{"type":14,"value":14247}," 'xs'",{"type":9,"tag":41,"props":14249,"children":14250},{"style":91},[14251],{"type":14,"value":14216},{"type":9,"tag":41,"props":14253,"children":14254},{"style":71},[14255],{"type":14,"value":14256}," 'md'",{"type":9,"tag":41,"props":14258,"children":14259},{"style":91},[14260],{"type":14,"value":14216},{"type":9,"tag":41,"props":14262,"children":14263},{"style":71},[14264],{"type":14,"value":14265}," 'lg'",{"type":9,"tag":41,"props":14267,"children":14268},{"style":91},[14269],{"type":14,"value":14216},{"type":9,"tag":41,"props":14271,"children":14272},{"style":71},[14273],{"type":14,"value":14274}," 'xl'\n",{"type":9,"tag":41,"props":14276,"children":14277},{"class":43,"line":227},[14278,14283,14287,14292,14296,14301,14305,14310,14314,14319,14323,14328,14332,14337,14341],{"type":9,"tag":41,"props":14279,"children":14280},{"style":337},[14281],{"type":14,"value":14282},"  color",{"type":9,"tag":41,"props":14284,"children":14285},{"style":91},[14286],{"type":14,"value":464},{"type":9,"tag":41,"props":14288,"children":14289},{"style":71},[14290],{"type":14,"value":14291}," 'error'",{"type":9,"tag":41,"props":14293,"children":14294},{"style":91},[14295],{"type":14,"value":14216},{"type":9,"tag":41,"props":14297,"children":14298},{"style":71},[14299],{"type":14,"value":14300}," 'primary'",{"type":9,"tag":41,"props":14302,"children":14303},{"style":91},[14304],{"type":14,"value":14216},{"type":9,"tag":41,"props":14306,"children":14307},{"style":71},[14308],{"type":14,"value":14309}," 'secondary'",{"type":9,"tag":41,"props":14311,"children":14312},{"style":91},[14313],{"type":14,"value":14216},{"type":9,"tag":41,"props":14315,"children":14316},{"style":71},[14317],{"type":14,"value":14318}," 'success'",{"type":9,"tag":41,"props":14320,"children":14321},{"style":91},[14322],{"type":14,"value":14216},{"type":9,"tag":41,"props":14324,"children":14325},{"style":71},[14326],{"type":14,"value":14327}," 'info'",{"type":9,"tag":41,"props":14329,"children":14330},{"style":91},[14331],{"type":14,"value":14216},{"type":9,"tag":41,"props":14333,"children":14334},{"style":71},[14335],{"type":14,"value":14336}," 'warning'",{"type":9,"tag":41,"props":14338,"children":14339},{"style":91},[14340],{"type":14,"value":14216},{"type":9,"tag":41,"props":14342,"children":14343},{"style":71},[14344],{"type":14,"value":14345}," 'neutral'\n",{"type":9,"tag":41,"props":14347,"children":14348},{"class":43,"line":259},[14349,14354,14359],{"type":9,"tag":41,"props":14350,"children":14351},{"style":337},[14352],{"type":14,"value":14353},"  rows",{"type":9,"tag":41,"props":14355,"children":14356},{"style":91},[14357],{"type":14,"value":14358},"?:",{"type":9,"tag":41,"props":14360,"children":14361},{"style":167},[14362],{"type":14,"value":14363}," number\n",{"type":9,"tag":41,"props":14365,"children":14366},{"class":43,"line":277},[14367,14372,14376],{"type":9,"tag":41,"props":14368,"children":14369},{"style":337},[14370],{"type":14,"value":14371},"  maxLength",{"type":9,"tag":41,"props":14373,"children":14374},{"style":91},[14375],{"type":14,"value":14358},{"type":9,"tag":41,"props":14377,"children":14378},{"style":167},[14379],{"type":14,"value":14363},{"type":9,"tag":41,"props":14381,"children":14382},{"class":43,"line":286},[14383],{"type":9,"tag":41,"props":14384,"children":14385},{"style":48},[14386],{"type":14,"value":14387},"}>()\n",{"type":9,"tag":41,"props":14389,"children":14390},{"class":43,"line":300},[14391],{"type":9,"tag":41,"props":14392,"children":14393},{"emptyLinePlaceholder":147},[14394],{"type":14,"value":150},{"type":9,"tag":41,"props":14396,"children":14397},{"class":43,"line":309},[14398,14402,14406,14410,14414,14418,14422],{"type":9,"tag":41,"props":14399,"children":14400},{"style":91},[14401],{"type":14,"value":159},{"type":9,"tag":41,"props":14403,"children":14404},{"style":48},[14405],{"type":14,"value":164},{"type":9,"tag":41,"props":14407,"children":14408},{"style":167},[14409],{"type":14,"value":170},{"type":9,"tag":41,"props":14411,"children":14412},{"style":48},[14413],{"type":14,"value":175},{"type":9,"tag":41,"props":14415,"children":14416},{"style":91},[14417],{"type":14,"value":68},{"type":9,"tag":41,"props":14419,"children":14420},{"style":60},[14421],{"type":14,"value":184},{"type":9,"tag":41,"props":14423,"children":14424},{"style":48},[14425],{"type":14,"value":189},{"type":9,"tag":41,"props":14427,"children":14428},{"class":43,"line":318},[14429,14433,14437,14441,14445],{"type":9,"tag":41,"props":14430,"children":14431},{"style":91},[14432],{"type":14,"value":159},{"type":9,"tag":41,"props":14434,"children":14435},{"style":167},[14436],{"type":14,"value":202},{"type":9,"tag":41,"props":14438,"children":14439},{"style":91},[14440],{"type":14,"value":207},{"type":9,"tag":41,"props":14442,"children":14443},{"style":60},[14444],{"type":14,"value":212},{"type":9,"tag":41,"props":14446,"children":14447},{"style":48},[14448],{"type":14,"value":189},{"type":9,"tag":41,"props":14450,"children":14451},{"class":43,"line":378},[14452],{"type":9,"tag":41,"props":14453,"children":14454},{"emptyLinePlaceholder":147},[14455],{"type":14,"value":150},{"type":9,"tag":41,"props":14457,"children":14458},{"class":43,"line":395},[14459,14463,14468,14472,14477,14482,14487],{"type":9,"tag":41,"props":14460,"children":14461},{"style":91},[14462],{"type":14,"value":159},{"type":9,"tag":41,"props":14464,"children":14465},{"style":167},[14466],{"type":14,"value":14467}," resolvedControlProps",{"type":9,"tag":41,"props":14469,"children":14470},{"style":91},[14471],{"type":14,"value":207},{"type":9,"tag":41,"props":14473,"children":14474},{"style":60},[14475],{"type":14,"value":14476}," computed",{"type":9,"tag":41,"props":14478,"children":14479},{"style":48},[14480],{"type":14,"value":14481},"(() ",{"type":9,"tag":41,"props":14483,"children":14484},{"style":91},[14485],{"type":14,"value":14486},"=>",{"type":9,"tag":41,"props":14488,"children":14489},{"style":48},[14490],{"type":14,"value":14491}," ({\n",{"type":9,"tag":41,"props":14493,"children":14494},{"class":43,"line":408},[14495,14500,14509],{"type":9,"tag":41,"props":14496,"children":14497},{"style":48},[14498],{"type":14,"value":14499},"  leadingIcon: ",{"type":9,"tag":41,"props":14501,"children":14502},{"style":71},[14503,14507],{"type":9,"tag":11544,"props":14504,"children":14506},{"class":11546,"style":14505},"--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Ftype.svg?color=%23000)",[],{"type":14,"value":14508},"'i-lucide-type'",{"type":9,"tag":41,"props":14510,"children":14511},{"style":48},[14512],{"type":14,"value":539},{"type":9,"tag":41,"props":14514,"children":14515},{"class":43,"line":417},[14516],{"type":9,"tag":41,"props":14517,"children":14518},{"style":48},[14519],{"type":14,"value":14520},"  color: props.color,\n",{"type":9,"tag":41,"props":14522,"children":14523},{"class":43,"line":426},[14524],{"type":9,"tag":41,"props":14525,"children":14526},{"style":48},[14527],{"type":14,"value":14528},"  rows: props.rows,\n",{"type":9,"tag":41,"props":14530,"children":14531},{"class":43,"line":434},[14532],{"type":9,"tag":41,"props":14533,"children":14534},{"style":48},[14535],{"type":14,"value":14536},"  maxlength: props.maxLength\n",{"type":9,"tag":41,"props":14538,"children":14539},{"class":43,"line":505},[14540],{"type":9,"tag":41,"props":14541,"children":14542},{"style":48},[14543],{"type":14,"value":14544},"}))\n",{"type":9,"tag":41,"props":14546,"children":14547},{"class":43,"line":523},[14548],{"type":9,"tag":41,"props":14549,"children":14550},{"emptyLinePlaceholder":147},[14551],{"type":14,"value":150},{"type":9,"tag":41,"props":14553,"children":14554},{"class":43,"line":542},[14555,14559,14563,14567,14571,14575,14579,14584,14588],{"type":9,"tag":41,"props":14556,"children":14557},{"style":91},[14558],{"type":14,"value":159},{"type":9,"tag":41,"props":14560,"children":14561},{"style":167},[14562],{"type":14,"value":237},{"type":9,"tag":41,"props":14564,"children":14565},{"style":91},[14566],{"type":14,"value":207},{"type":9,"tag":41,"props":14568,"children":14569},{"style":60},[14570],{"type":14,"value":14476},{"type":9,"tag":41,"props":14572,"children":14573},{"style":48},[14574],{"type":14,"value":14481},{"type":9,"tag":41,"props":14576,"children":14577},{"style":91},[14578],{"type":14,"value":14486},{"type":9,"tag":41,"props":14580,"children":14581},{"style":48},[14582],{"type":14,"value":14583}," (afz.",{"type":9,"tag":41,"props":14585,"children":14586},{"style":60},[14587],{"type":14,"value":251},{"type":9,"tag":41,"props":14589,"children":14590},{"style":48},[14591],{"type":14,"value":256},{"type":9,"tag":41,"props":14593,"children":14594},{"class":43,"line":560},[14595,14600,14604],{"type":9,"tag":41,"props":14596,"children":14597},{"style":48},[14598],{"type":14,"value":14599},"  stringWithType: afz.",{"type":9,"tag":41,"props":14601,"children":14602},{"style":60},[14603],{"type":14,"value":11520},{"type":9,"tag":41,"props":14605,"children":14606},{"style":48},[14607],{"type":14,"value":256},{"type":9,"tag":41,"props":14609,"children":14610},{"class":43,"line":606},[14611],{"type":9,"tag":41,"props":14612,"children":14613},{"style":48},[14614],{"type":14,"value":14615},"    type: props.type,\n",{"type":9,"tag":41,"props":14617,"children":14618},{"class":43,"line":614},[14619],{"type":9,"tag":41,"props":14620,"children":14621},{"style":48},[14622],{"type":14,"value":14623},"    controlProps: resolvedControlProps.value\n",{"type":9,"tag":41,"props":14625,"children":14626},{"class":43,"line":623},[14627,14631,14635],{"type":9,"tag":41,"props":14628,"children":14629},{"style":48},[14630],{"type":14,"value":1558},{"type":9,"tag":41,"props":14632,"children":14633},{"style":60},[14634],{"type":14,"value":388},{"type":9,"tag":41,"props":14636,"children":14637},{"style":48},[14638],{"type":14,"value":256},{"type":9,"tag":41,"props":14640,"children":14641},{"class":43,"line":640},[14642],{"type":9,"tag":41,"props":14643,"children":14644},{"style":48},[14645],{"type":14,"value":14646},"    size: props.size\n",{"type":9,"tag":41,"props":14648,"children":14649},{"class":43,"line":648},[14650,14654,14658],{"type":9,"tag":41,"props":14651,"children":14652},{"style":48},[14653],{"type":14,"value":1558},{"type":9,"tag":41,"props":14655,"children":14656},{"style":60},[14657],{"type":14,"value":8949},{"type":9,"tag":41,"props":14659,"children":14660},{"style":48},[14661],{"type":14,"value":189},{"type":9,"tag":41,"props":14663,"children":14664},{"class":43,"line":665},[14665],{"type":9,"tag":41,"props":14666,"children":14667},{"style":48},[14668],{"type":14,"value":14669},"})))\n",{"type":9,"tag":41,"props":14671,"children":14672},{"class":43,"line":738},[14673],{"type":9,"tag":41,"props":14674,"children":14675},{"emptyLinePlaceholder":147},[14676],{"type":14,"value":150},{"type":9,"tag":41,"props":14678,"children":14679},{"class":43,"line":3093},[14680,14684,14688,14692,14696,14700,14704,14708,14712],{"type":9,"tag":41,"props":14681,"children":14682},{"style":91},[14683],{"type":14,"value":2890},{"type":9,"tag":41,"props":14685,"children":14686},{"style":60},[14687],{"type":14,"value":2895},{"type":9,"tag":41,"props":14689,"children":14690},{"style":91},[14691],{"type":14,"value":207},{"type":9,"tag":41,"props":14693,"children":14694},{"style":60},[14695],{"type":14,"value":2904},{"type":9,"tag":41,"props":14697,"children":14698},{"style":48},[14699],{"type":14,"value":483},{"type":9,"tag":41,"props":14701,"children":14702},{"style":60},[14703],{"type":14,"value":488},{"type":9,"tag":41,"props":14705,"children":14706},{"style":48},[14707],{"type":14,"value":51},{"type":9,"tag":41,"props":14709,"children":14710},{"style":91},[14711],{"type":14,"value":497},{"type":9,"tag":41,"props":14713,"children":14714},{"style":48},[14715],{"type":14,"value":14716}," schema.value>\n",{"type":9,"tag":41,"props":14718,"children":14719},{"class":43,"line":3101},[14720],{"type":9,"tag":41,"props":14721,"children":14722},{"emptyLinePlaceholder":147},[14723],{"type":14,"value":150},{"type":9,"tag":41,"props":14725,"children":14726},{"class":43,"line":3117},[14727,14731,14736,14740,14745,14749,14754,14758,14762],{"type":9,"tag":41,"props":14728,"children":14729},{"style":91},[14730],{"type":14,"value":159},{"type":9,"tag":41,"props":14732,"children":14733},{"style":167},[14734],{"type":14,"value":14735}," form",{"type":9,"tag":41,"props":14737,"children":14738},{"style":91},[14739],{"type":14,"value":207},{"type":9,"tag":41,"props":14741,"children":14742},{"style":60},[14743],{"type":14,"value":14744}," ref",{"type":9,"tag":41,"props":14746,"children":14747},{"style":48},[14748],{"type":14,"value":51},{"type":9,"tag":41,"props":14750,"children":14751},{"style":60},[14752],{"type":14,"value":14753},"Partial",{"type":9,"tag":41,"props":14755,"children":14756},{"style":48},[14757],{"type":14,"value":51},{"type":9,"tag":41,"props":14759,"children":14760},{"style":60},[14761],{"type":14,"value":2972},{"type":9,"tag":41,"props":14763,"children":14764},{"style":48},[14765],{"type":14,"value":14766},">>({})\n",{"type":9,"tag":41,"props":14768,"children":14769},{"class":43,"line":3181},[14770],{"type":9,"tag":41,"props":14771,"children":14772},{"emptyLinePlaceholder":147},[14773],{"type":14,"value":150},{"type":9,"tag":41,"props":14775,"children":14776},{"class":43,"line":3851},[14777,14781,14785,14789,14793,14797,14801,14805,14809,14813],{"type":9,"tag":41,"props":14778,"children":14779},{"style":91},[14780],{"type":14,"value":440},{"type":9,"tag":41,"props":14782,"children":14783},{"style":91},[14784],{"type":14,"value":445},{"type":9,"tag":41,"props":14786,"children":14787},{"style":60},[14788],{"type":14,"value":450},{"type":9,"tag":41,"props":14790,"children":14791},{"style":48},[14792],{"type":14,"value":334},{"type":9,"tag":41,"props":14794,"children":14795},{"style":337},[14796],{"type":14,"value":459},{"type":9,"tag":41,"props":14798,"children":14799},{"style":91},[14800],{"type":14,"value":464},{"type":9,"tag":41,"props":14802,"children":14803},{"style":60},[14804],{"type":14,"value":469},{"type":9,"tag":41,"props":14806,"children":14807},{"style":48},[14808],{"type":14,"value":51},{"type":9,"tag":41,"props":14810,"children":14811},{"style":60},[14812],{"type":14,"value":2972},{"type":9,"tag":41,"props":14814,"children":14815},{"style":48},[14816],{"type":14,"value":2977},{"type":9,"tag":41,"props":14818,"children":14819},{"class":43,"line":3915},[14820,14824,14828],{"type":9,"tag":41,"props":14821,"children":14822},{"style":48},[14823],{"type":14,"value":511},{"type":9,"tag":41,"props":14825,"children":14826},{"style":60},[14827],{"type":14,"value":516},{"type":9,"tag":41,"props":14829,"children":14830},{"style":48},[14831],{"type":14,"value":256},{"type":9,"tag":41,"props":14833,"children":14834},{"class":43,"line":9208},[14835,14839,14843],{"type":9,"tag":41,"props":14836,"children":14837},{"style":48},[14838],{"type":14,"value":529},{"type":9,"tag":41,"props":14840,"children":14841},{"style":71},[14842],{"type":14,"value":534},{"type":9,"tag":41,"props":14844,"children":14845},{"style":48},[14846],{"type":14,"value":539},{"type":9,"tag":41,"props":14848,"children":14849},{"class":43,"line":9216},[14850,14854,14858],{"type":9,"tag":41,"props":14851,"children":14852},{"style":48},[14853],{"type":14,"value":548},{"type":9,"tag":41,"props":14855,"children":14856},{"style":71},[14857],{"type":14,"value":553},{"type":9,"tag":41,"props":14859,"children":14860},{"style":48},[14861],{"type":14,"value":539},{"type":9,"tag":41,"props":14863,"children":14864},{"class":43,"line":9232},[14865,14869,14873,14877,14881,14885,14889,14893,14897],{"type":9,"tag":41,"props":14866,"children":14867},{"style":48},[14868],{"type":14,"value":566},{"type":9,"tag":41,"props":14870,"children":14871},{"style":167},[14872],{"type":14,"value":571},{"type":9,"tag":41,"props":14874,"children":14875},{"style":48},[14876],{"type":14,"value":483},{"type":9,"tag":41,"props":14878,"children":14879},{"style":60},[14880],{"type":14,"value":580},{"type":9,"tag":41,"props":14882,"children":14883},{"style":48},[14884],{"type":14,"value":585},{"type":9,"tag":41,"props":14886,"children":14887},{"style":167},[14888],{"type":14,"value":590},{"type":9,"tag":41,"props":14890,"children":14891},{"style":48},[14892],{"type":14,"value":365},{"type":9,"tag":41,"props":14894,"children":14895},{"style":167},[14896],{"type":14,"value":599},{"type":9,"tag":41,"props":14898,"children":14899},{"style":48},[14900],{"type":14,"value":375},{"type":9,"tag":41,"props":14902,"children":14903},{"class":43,"line":9296},[14904],{"type":9,"tag":41,"props":14905,"children":14906},{"style":48},[14907],{"type":14,"value":315},{"type":9,"tag":41,"props":14909,"children":14911},{"class":43,"line":14910},42,[14912],{"type":9,"tag":41,"props":14913,"children":14914},{"style":48},[14915],{"type":14,"value":620},{"type":9,"tag":41,"props":14917,"children":14919},{"class":43,"line":14918},43,[14920,14924,14928],{"type":9,"tag":41,"props":14921,"children":14922},{"style":48},[14923],{"type":14,"value":629},{"type":9,"tag":41,"props":14925,"children":14926},{"style":54},[14927],{"type":14,"value":57},{"type":9,"tag":41,"props":14929,"children":14930},{"style":48},[14931],{"type":14,"value":84},{"type":9,"tag":41,"props":14933,"children":14935},{"class":43,"line":14934},44,[14936],{"type":9,"tag":41,"props":14937,"children":14938},{"emptyLinePlaceholder":147},[14939],{"type":14,"value":150},{"type":9,"tag":41,"props":14941,"children":14943},{"class":43,"line":14942},45,[14944,14948,14952],{"type":9,"tag":41,"props":14945,"children":14946},{"style":48},[14947],{"type":14,"value":51},{"type":9,"tag":41,"props":14949,"children":14950},{"style":54},[14951],{"type":14,"value":658},{"type":9,"tag":41,"props":14953,"children":14954},{"style":48},[14955],{"type":14,"value":84},{"type":9,"tag":41,"props":14957,"children":14959},{"class":43,"line":14958},46,[14960,14964,14969,14974,14978,14983],{"type":9,"tag":41,"props":14961,"children":14962},{"style":48},[14963],{"type":14,"value":671},{"type":9,"tag":41,"props":14965,"children":14966},{"style":54},[14967],{"type":14,"value":14968},"UCard",{"type":9,"tag":41,"props":14970,"children":14971},{"style":60},[14972],{"type":14,"value":14973}," class",{"type":9,"tag":41,"props":14975,"children":14976},{"style":48},[14977],{"type":14,"value":68},{"type":9,"tag":41,"props":14979,"children":14980},{"style":71},[14981],{"type":14,"value":14982},"\"w-lg\"",{"type":9,"tag":41,"props":14984,"children":14985},{"style":48},[14986],{"type":14,"value":84},{"type":9,"tag":41,"props":14988,"children":14990},{"class":43,"line":14989},47,[14991,14996],{"type":9,"tag":41,"props":14992,"children":14993},{"style":48},[14994],{"type":14,"value":14995},"    \u003C",{"type":9,"tag":41,"props":14997,"children":14998},{"style":54},[14999],{"type":14,"value":15000},"MAutoForm\n",{"type":9,"tag":41,"props":15002,"children":15004},{"class":43,"line":15003},48,[15005,15010,15014,15018,15023],{"type":9,"tag":41,"props":15006,"children":15007},{"style":60},[15008],{"type":14,"value":15009},"      v-model",{"type":9,"tag":41,"props":15011,"children":15012},{"style":48},[15013],{"type":14,"value":68},{"type":9,"tag":41,"props":15015,"children":15016},{"style":71},[15017],{"type":14,"value":695},{"type":9,"tag":41,"props":15019,"children":15020},{"style":48},[15021],{"type":14,"value":15022},"form",{"type":9,"tag":41,"props":15024,"children":15025},{"style":71},[15026],{"type":14,"value":15027},"\"\n",{"type":9,"tag":41,"props":15029,"children":15031},{"class":43,"line":15030},49,[15032,15037,15041,15045,15049,15053],{"type":9,"tag":41,"props":15033,"children":15034},{"style":48},[15035],{"type":14,"value":15036},"      :",{"type":9,"tag":41,"props":15038,"children":15039},{"style":60},[15040],{"type":14,"value":686},{"type":9,"tag":41,"props":15042,"children":15043},{"style":48},[15044],{"type":14,"value":68},{"type":9,"tag":41,"props":15046,"children":15047},{"style":71},[15048],{"type":14,"value":695},{"type":9,"tag":41,"props":15050,"children":15051},{"style":48},[15052],{"type":14,"value":686},{"type":9,"tag":41,"props":15054,"children":15055},{"style":71},[15056],{"type":14,"value":15027},{"type":9,"tag":41,"props":15058,"children":15060},{"class":43,"line":15059},50,[15061,15065,15070,15074,15078],{"type":9,"tag":41,"props":15062,"children":15063},{"style":48},[15064],{"type":14,"value":15036},{"type":9,"tag":41,"props":15066,"children":15067},{"style":60},[15068],{"type":14,"value":15069},"submit-button-props",{"type":9,"tag":41,"props":15071,"children":15072},{"style":48},[15073],{"type":14,"value":68},{"type":9,"tag":41,"props":15075,"children":15076},{"style":71},[15077],{"type":14,"value":695},{"type":9,"tag":41,"props":15079,"children":15080},{"style":48},[15081],{"type":14,"value":15082},"{\n",{"type":9,"tag":41,"props":15084,"children":15086},{"class":43,"line":15085},51,[15087],{"type":9,"tag":41,"props":15088,"children":15089},{"style":48},[15090],{"type":14,"value":15091},"        color\n",{"type":9,"tag":41,"props":15093,"children":15095},{"class":43,"line":15094},52,[15096,15101],{"type":9,"tag":41,"props":15097,"children":15098},{"style":48},[15099],{"type":14,"value":15100},"      }",{"type":9,"tag":41,"props":15102,"children":15103},{"style":71},[15104],{"type":14,"value":15027},{"type":9,"tag":41,"props":15106,"children":15108},{"class":43,"line":15107},53,[15109,15114,15118,15122,15126,15130],{"type":9,"tag":41,"props":15110,"children":15111},{"style":48},[15112],{"type":14,"value":15113},"      @",{"type":9,"tag":41,"props":15115,"children":15116},{"style":60},[15117],{"type":14,"value":713},{"type":9,"tag":41,"props":15119,"children":15120},{"style":48},[15121],{"type":14,"value":68},{"type":9,"tag":41,"props":15123,"children":15124},{"style":71},[15125],{"type":14,"value":695},{"type":9,"tag":41,"props":15127,"children":15128},{"style":48},[15129],{"type":14,"value":726},{"type":9,"tag":41,"props":15131,"children":15132},{"style":71},[15133],{"type":14,"value":15027},{"type":9,"tag":41,"props":15135,"children":15137},{"class":43,"line":15136},54,[15138],{"type":9,"tag":41,"props":15139,"children":15140},{"style":48},[15141],{"type":14,"value":15142},"    \u002F>\n",{"type":9,"tag":41,"props":15144,"children":15146},{"class":43,"line":15145},55,[15147,15152,15156],{"type":9,"tag":41,"props":15148,"children":15149},{"style":48},[15150],{"type":14,"value":15151},"  \u003C\u002F",{"type":9,"tag":41,"props":15153,"children":15154},{"style":54},[15155],{"type":14,"value":14968},{"type":9,"tag":41,"props":15157,"children":15158},{"style":48},[15159],{"type":14,"value":84},{"type":9,"tag":41,"props":15161,"children":15163},{"class":43,"line":15162},56,[15164,15168,15172],{"type":9,"tag":41,"props":15165,"children":15166},{"style":48},[15167],{"type":14,"value":629},{"type":9,"tag":41,"props":15169,"children":15170},{"style":54},[15171],{"type":14,"value":658},{"type":9,"tag":41,"props":15173,"children":15174},{"style":48},[15175],{"type":14,"value":84},{"type":9,"tag":753,"props":15177,"children":15178},{},[15179],{"type":14,"value":757},{"title":22,"searchDepth":87,"depth":87,"links":15181},[],{"code":15183,"filePath":15184,"pascalName":15185},"\u003Cscript setup lang=\"ts\">\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst schema = afz.object({\n  period: afz.enum(['日', '周', '月'], {\n    type: 'toggleGroup',\n    controlProps: { attached: true }\n  }).optional().meta({ label: '统计周期' }),\n  formats: afz.array(afz.enum(['bold', 'italic', 'underline']), {\n    type: 'toggleGroup',\n    controlProps: {\n      type: 'multiple',\n      items: [\n        { label: '加粗', value: 'bold' },\n        { label: '斜体', value: 'italic' },\n        { label: '下划线', value: 'underline' }\n      ]\n    }\n  }).default([]).meta({ label: '文字格式' })\n})\n\nconst state = reactive\u003Cz.input\u003Ctypeof schema>>({})\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm v-model=\"state\" :schema=\"schema\" :submit=\"false\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Ffield-types\u002FAutoFormFieldToggleGroupExample.vue","AutoFormFieldToggleGroupExample",{"data":15187,"body":15188,"toc":15846},{"title":22,"description":22},{"type":6,"children":15189},[15190,15842],{"type":9,"tag":26,"props":15191,"children":15192},{},[15193],{"type":9,"tag":30,"props":15194,"children":15196},{"className":32,"code":15195,"language":34,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst schema = afz.object({\n  period: afz.enum(['日', '周', '月'], {\n    type: 'toggleGroup',\n    controlProps: { attached: true }\n  }).optional().meta({ label: '统计周期' }),\n  formats: afz.array(afz.enum(['bold', 'italic', 'underline']), {\n    type: 'toggleGroup',\n    controlProps: {\n      type: 'multiple',\n      items: [\n        { label: '加粗', value: 'bold' },\n        { label: '斜体', value: 'italic' },\n        { label: '下划线', value: 'underline' }\n      ]\n    }\n  }).default([]).meta({ label: '文字格式' })\n})\n\nconst state = reactive\u003Cz.input\u003Ctypeof schema>>({})\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm v-model=\"state\" :schema=\"schema\" :submit=\"false\" \u002F>\n\u003C\u002Ftemplate>\n\n",[15197],{"type":9,"tag":37,"props":15198,"children":15199},{"__ignoreMap":22},[15200,15231,15254,15261,15292,15319,15363,15379,15395,15429,15481,15496,15503,15520,15527,15551,15575,15599,15606,15613,15646,15653,15660,15707,15722,15729,15744,15827],{"type":9,"tag":41,"props":15201,"children":15202},{"class":43,"line":44},[15203,15207,15211,15215,15219,15223,15227],{"type":9,"tag":41,"props":15204,"children":15205},{"style":48},[15206],{"type":14,"value":51},{"type":9,"tag":41,"props":15208,"children":15209},{"style":54},[15210],{"type":14,"value":57},{"type":9,"tag":41,"props":15212,"children":15213},{"style":60},[15214],{"type":14,"value":79},{"type":9,"tag":41,"props":15216,"children":15217},{"style":60},[15218],{"type":14,"value":63},{"type":9,"tag":41,"props":15220,"children":15221},{"style":48},[15222],{"type":14,"value":68},{"type":9,"tag":41,"props":15224,"children":15225},{"style":71},[15226],{"type":14,"value":74},{"type":9,"tag":41,"props":15228,"children":15229},{"style":48},[15230],{"type":14,"value":84},{"type":9,"tag":41,"props":15232,"children":15233},{"class":43,"line":87},[15234,15238,15242,15246,15250],{"type":9,"tag":41,"props":15235,"children":15236},{"style":91},[15237],{"type":14,"value":94},{"type":9,"tag":41,"props":15239,"children":15240},{"style":91},[15241],{"type":14,"value":99},{"type":9,"tag":41,"props":15243,"children":15244},{"style":48},[15245],{"type":14,"value":131},{"type":9,"tag":41,"props":15247,"children":15248},{"style":91},[15249],{"type":14,"value":109},{"type":9,"tag":41,"props":15251,"children":15252},{"style":71},[15253],{"type":14,"value":140},{"type":9,"tag":41,"props":15255,"children":15256},{"class":43,"line":117},[15257],{"type":9,"tag":41,"props":15258,"children":15259},{"emptyLinePlaceholder":147},[15260],{"type":14,"value":150},{"type":9,"tag":41,"props":15262,"children":15263},{"class":43,"line":143},[15264,15268,15272,15276,15280,15284,15288],{"type":9,"tag":41,"props":15265,"children":15266},{"style":91},[15267],{"type":14,"value":159},{"type":9,"tag":41,"props":15269,"children":15270},{"style":48},[15271],{"type":14,"value":164},{"type":9,"tag":41,"props":15273,"children":15274},{"style":167},[15275],{"type":14,"value":170},{"type":9,"tag":41,"props":15277,"children":15278},{"style":48},[15279],{"type":14,"value":175},{"type":9,"tag":41,"props":15281,"children":15282},{"style":91},[15283],{"type":14,"value":68},{"type":9,"tag":41,"props":15285,"children":15286},{"style":60},[15287],{"type":14,"value":184},{"type":9,"tag":41,"props":15289,"children":15290},{"style":48},[15291],{"type":14,"value":189},{"type":9,"tag":41,"props":15293,"children":15294},{"class":43,"line":153},[15295,15299,15303,15307,15311,15315],{"type":9,"tag":41,"props":15296,"children":15297},{"style":91},[15298],{"type":14,"value":159},{"type":9,"tag":41,"props":15300,"children":15301},{"style":167},[15302],{"type":14,"value":237},{"type":9,"tag":41,"props":15304,"children":15305},{"style":91},[15306],{"type":14,"value":207},{"type":9,"tag":41,"props":15308,"children":15309},{"style":48},[15310],{"type":14,"value":246},{"type":9,"tag":41,"props":15312,"children":15313},{"style":60},[15314],{"type":14,"value":251},{"type":9,"tag":41,"props":15316,"children":15317},{"style":48},[15318],{"type":14,"value":256},{"type":9,"tag":41,"props":15320,"children":15321},{"class":43,"line":192},[15322,15327,15331,15335,15340,15344,15349,15353,15358],{"type":9,"tag":41,"props":15323,"children":15324},{"style":48},[15325],{"type":14,"value":15326},"  period: afz.",{"type":9,"tag":41,"props":15328,"children":15329},{"style":60},[15330],{"type":14,"value":3403},{"type":9,"tag":41,"props":15332,"children":15333},{"style":48},[15334],{"type":14,"value":4141},{"type":9,"tag":41,"props":15336,"children":15337},{"style":71},[15338],{"type":14,"value":15339},"'日'",{"type":9,"tag":41,"props":15341,"children":15342},{"style":48},[15343],{"type":14,"value":365},{"type":9,"tag":41,"props":15345,"children":15346},{"style":71},[15347],{"type":14,"value":15348},"'周'",{"type":9,"tag":41,"props":15350,"children":15351},{"style":48},[15352],{"type":14,"value":365},{"type":9,"tag":41,"props":15354,"children":15355},{"style":71},[15356],{"type":14,"value":15357},"'月'",{"type":9,"tag":41,"props":15359,"children":15360},{"style":48},[15361],{"type":14,"value":15362},"], {\n",{"type":9,"tag":41,"props":15364,"children":15365},{"class":43,"line":219},[15366,15370,15375],{"type":9,"tag":41,"props":15367,"children":15368},{"style":48},[15369],{"type":14,"value":973},{"type":9,"tag":41,"props":15371,"children":15372},{"style":71},[15373],{"type":14,"value":15374},"'toggleGroup'",{"type":9,"tag":41,"props":15376,"children":15377},{"style":48},[15378],{"type":14,"value":539},{"type":9,"tag":41,"props":15380,"children":15381},{"class":43,"line":227},[15382,15387,15391],{"type":9,"tag":41,"props":15383,"children":15384},{"style":48},[15385],{"type":14,"value":15386},"    controlProps: { attached: ",{"type":9,"tag":41,"props":15388,"children":15389},{"style":167},[15390],{"type":14,"value":1006},{"type":9,"tag":41,"props":15392,"children":15393},{"style":48},[15394],{"type":14,"value":1550},{"type":9,"tag":41,"props":15396,"children":15397},{"class":43,"line":259},[15398,15402,15406,15411,15415,15419,15424],{"type":9,"tag":41,"props":15399,"children":15400},{"style":48},[15401],{"type":14,"value":1558},{"type":9,"tag":41,"props":15403,"children":15404},{"style":60},[15405],{"type":14,"value":8949},{"type":9,"tag":41,"props":15407,"children":15408},{"style":48},[15409],{"type":14,"value":15410},"().",{"type":9,"tag":41,"props":15412,"children":15413},{"style":60},[15414],{"type":14,"value":388},{"type":9,"tag":41,"props":15416,"children":15417},{"style":48},[15418],{"type":14,"value":1585},{"type":9,"tag":41,"props":15420,"children":15421},{"style":71},[15422],{"type":14,"value":15423},"'统计周期'",{"type":9,"tag":41,"props":15425,"children":15426},{"style":48},[15427],{"type":14,"value":15428}," }),\n",{"type":9,"tag":41,"props":15430,"children":15431},{"class":43,"line":277},[15432,15437,15441,15445,15449,15453,15458,15462,15467,15471,15476],{"type":9,"tag":41,"props":15433,"children":15434},{"style":48},[15435],{"type":14,"value":15436},"  formats: afz.",{"type":9,"tag":41,"props":15438,"children":15439},{"style":60},[15440],{"type":14,"value":5445},{"type":9,"tag":41,"props":15442,"children":15443},{"style":48},[15444],{"type":14,"value":5450},{"type":9,"tag":41,"props":15446,"children":15447},{"style":60},[15448],{"type":14,"value":3403},{"type":9,"tag":41,"props":15450,"children":15451},{"style":48},[15452],{"type":14,"value":4141},{"type":9,"tag":41,"props":15454,"children":15455},{"style":71},[15456],{"type":14,"value":15457},"'bold'",{"type":9,"tag":41,"props":15459,"children":15460},{"style":48},[15461],{"type":14,"value":365},{"type":9,"tag":41,"props":15463,"children":15464},{"style":71},[15465],{"type":14,"value":15466},"'italic'",{"type":9,"tag":41,"props":15468,"children":15469},{"style":48},[15470],{"type":14,"value":365},{"type":9,"tag":41,"props":15472,"children":15473},{"style":71},[15474],{"type":14,"value":15475},"'underline'",{"type":9,"tag":41,"props":15477,"children":15478},{"style":48},[15479],{"type":14,"value":15480},"]), {\n",{"type":9,"tag":41,"props":15482,"children":15483},{"class":43,"line":286},[15484,15488,15492],{"type":9,"tag":41,"props":15485,"children":15486},{"style":48},[15487],{"type":14,"value":973},{"type":9,"tag":41,"props":15489,"children":15490},{"style":71},[15491],{"type":14,"value":15374},{"type":9,"tag":41,"props":15493,"children":15494},{"style":48},[15495],{"type":14,"value":539},{"type":9,"tag":41,"props":15497,"children":15498},{"class":43,"line":300},[15499],{"type":9,"tag":41,"props":15500,"children":15501},{"style":48},[15502],{"type":14,"value":283},{"type":9,"tag":41,"props":15504,"children":15505},{"class":43,"line":309},[15506,15511,15516],{"type":9,"tag":41,"props":15507,"children":15508},{"style":48},[15509],{"type":14,"value":15510},"      type: ",{"type":9,"tag":41,"props":15512,"children":15513},{"style":71},[15514],{"type":14,"value":15515},"'multiple'",{"type":9,"tag":41,"props":15517,"children":15518},{"style":48},[15519],{"type":14,"value":539},{"type":9,"tag":41,"props":15521,"children":15522},{"class":43,"line":318},[15523],{"type":9,"tag":41,"props":15524,"children":15525},{"style":48},[15526],{"type":14,"value":3456},{"type":9,"tag":41,"props":15528,"children":15529},{"class":43,"line":378},[15530,15534,15539,15543,15547],{"type":9,"tag":41,"props":15531,"children":15532},{"style":48},[15533],{"type":14,"value":3464},{"type":9,"tag":41,"props":15535,"children":15536},{"style":71},[15537],{"type":14,"value":15538},"'加粗'",{"type":9,"tag":41,"props":15540,"children":15541},{"style":48},[15542],{"type":14,"value":4836},{"type":9,"tag":41,"props":15544,"children":15545},{"style":71},[15546],{"type":14,"value":15457},{"type":9,"tag":41,"props":15548,"children":15549},{"style":48},[15550],{"type":14,"value":3493},{"type":9,"tag":41,"props":15552,"children":15553},{"class":43,"line":395},[15554,15558,15563,15567,15571],{"type":9,"tag":41,"props":15555,"children":15556},{"style":48},[15557],{"type":14,"value":3464},{"type":9,"tag":41,"props":15559,"children":15560},{"style":71},[15561],{"type":14,"value":15562},"'斜体'",{"type":9,"tag":41,"props":15564,"children":15565},{"style":48},[15566],{"type":14,"value":4836},{"type":9,"tag":41,"props":15568,"children":15569},{"style":71},[15570],{"type":14,"value":15466},{"type":9,"tag":41,"props":15572,"children":15573},{"style":48},[15574],{"type":14,"value":3493},{"type":9,"tag":41,"props":15576,"children":15577},{"class":43,"line":408},[15578,15582,15587,15591,15595],{"type":9,"tag":41,"props":15579,"children":15580},{"style":48},[15581],{"type":14,"value":3464},{"type":9,"tag":41,"props":15583,"children":15584},{"style":71},[15585],{"type":14,"value":15586},"'下划线'",{"type":9,"tag":41,"props":15588,"children":15589},{"style":48},[15590],{"type":14,"value":4836},{"type":9,"tag":41,"props":15592,"children":15593},{"style":71},[15594],{"type":14,"value":15475},{"type":9,"tag":41,"props":15596,"children":15597},{"style":48},[15598],{"type":14,"value":1550},{"type":9,"tag":41,"props":15600,"children":15601},{"class":43,"line":417},[15602],{"type":9,"tag":41,"props":15603,"children":15604},{"style":48},[15605],{"type":14,"value":3569},{"type":9,"tag":41,"props":15607,"children":15608},{"class":43,"line":426},[15609],{"type":9,"tag":41,"props":15610,"children":15611},{"style":48},[15612],{"type":14,"value":306},{"type":9,"tag":41,"props":15614,"children":15615},{"class":43,"line":434},[15616,15620,15624,15629,15633,15637,15642],{"type":9,"tag":41,"props":15617,"children":15618},{"style":48},[15619],{"type":14,"value":1558},{"type":9,"tag":41,"props":15621,"children":15622},{"style":60},[15623],{"type":14,"value":997},{"type":9,"tag":41,"props":15625,"children":15626},{"style":48},[15627],{"type":14,"value":15628},"([]).",{"type":9,"tag":41,"props":15630,"children":15631},{"style":60},[15632],{"type":14,"value":388},{"type":9,"tag":41,"props":15634,"children":15635},{"style":48},[15636],{"type":14,"value":1585},{"type":9,"tag":41,"props":15638,"children":15639},{"style":71},[15640],{"type":14,"value":15641},"'文字格式'",{"type":9,"tag":41,"props":15643,"children":15644},{"style":48},[15645],{"type":14,"value":1595},{"type":9,"tag":41,"props":15647,"children":15648},{"class":43,"line":505},[15649],{"type":9,"tag":41,"props":15650,"children":15651},{"style":48},[15652],{"type":14,"value":423},{"type":9,"tag":41,"props":15654,"children":15655},{"class":43,"line":523},[15656],{"type":9,"tag":41,"props":15657,"children":15658},{"emptyLinePlaceholder":147},[15659],{"type":14,"value":150},{"type":9,"tag":41,"props":15661,"children":15662},{"class":43,"line":542},[15663,15667,15671,15675,15679,15683,15687,15691,15695,15699,15703],{"type":9,"tag":41,"props":15664,"children":15665},{"style":91},[15666],{"type":14,"value":159},{"type":9,"tag":41,"props":15668,"children":15669},{"style":167},[15670],{"type":14,"value":1621},{"type":9,"tag":41,"props":15672,"children":15673},{"style":91},[15674],{"type":14,"value":207},{"type":9,"tag":41,"props":15676,"children":15677},{"style":60},[15678],{"type":14,"value":1630},{"type":9,"tag":41,"props":15680,"children":15681},{"style":48},[15682],{"type":14,"value":51},{"type":9,"tag":41,"props":15684,"children":15685},{"style":60},[15686],{"type":14,"value":478},{"type":9,"tag":41,"props":15688,"children":15689},{"style":48},[15690],{"type":14,"value":483},{"type":9,"tag":41,"props":15692,"children":15693},{"style":60},[15694],{"type":14,"value":1647},{"type":9,"tag":41,"props":15696,"children":15697},{"style":48},[15698],{"type":14,"value":51},{"type":9,"tag":41,"props":15700,"children":15701},{"style":91},[15702],{"type":14,"value":497},{"type":9,"tag":41,"props":15704,"children":15705},{"style":48},[15706],{"type":14,"value":1660},{"type":9,"tag":41,"props":15708,"children":15709},{"class":43,"line":560},[15710,15714,15718],{"type":9,"tag":41,"props":15711,"children":15712},{"style":48},[15713],{"type":14,"value":629},{"type":9,"tag":41,"props":15715,"children":15716},{"style":54},[15717],{"type":14,"value":57},{"type":9,"tag":41,"props":15719,"children":15720},{"style":48},[15721],{"type":14,"value":84},{"type":9,"tag":41,"props":15723,"children":15724},{"class":43,"line":606},[15725],{"type":9,"tag":41,"props":15726,"children":15727},{"emptyLinePlaceholder":147},[15728],{"type":14,"value":150},{"type":9,"tag":41,"props":15730,"children":15731},{"class":43,"line":614},[15732,15736,15740],{"type":9,"tag":41,"props":15733,"children":15734},{"style":48},[15735],{"type":14,"value":51},{"type":9,"tag":41,"props":15737,"children":15738},{"style":54},[15739],{"type":14,"value":658},{"type":9,"tag":41,"props":15741,"children":15742},{"style":48},[15743],{"type":14,"value":84},{"type":9,"tag":41,"props":15745,"children":15746},{"class":43,"line":623},[15747,15751,15755,15759,15763,15767,15771,15775,15779,15783,15787,15791,15795,15799,15803,15807,15811,15815,15819,15823],{"type":9,"tag":41,"props":15748,"children":15749},{"style":48},[15750],{"type":14,"value":671},{"type":9,"tag":41,"props":15752,"children":15753},{"style":54},[15754],{"type":14,"value":676},{"type":9,"tag":41,"props":15756,"children":15757},{"style":60},[15758],{"type":14,"value":1713},{"type":9,"tag":41,"props":15760,"children":15761},{"style":48},[15762],{"type":14,"value":68},{"type":9,"tag":41,"props":15764,"children":15765},{"style":71},[15766],{"type":14,"value":695},{"type":9,"tag":41,"props":15768,"children":15769},{"style":48},[15770],{"type":14,"value":1726},{"type":9,"tag":41,"props":15772,"children":15773},{"style":71},[15774],{"type":14,"value":695},{"type":9,"tag":41,"props":15776,"children":15777},{"style":48},[15778],{"type":14,"value":681},{"type":9,"tag":41,"props":15780,"children":15781},{"style":60},[15782],{"type":14,"value":686},{"type":9,"tag":41,"props":15784,"children":15785},{"style":48},[15786],{"type":14,"value":68},{"type":9,"tag":41,"props":15788,"children":15789},{"style":71},[15790],{"type":14,"value":695},{"type":9,"tag":41,"props":15792,"children":15793},{"style":48},[15794],{"type":14,"value":686},{"type":9,"tag":41,"props":15796,"children":15797},{"style":71},[15798],{"type":14,"value":695},{"type":9,"tag":41,"props":15800,"children":15801},{"style":48},[15802],{"type":14,"value":681},{"type":9,"tag":41,"props":15804,"children":15805},{"style":60},[15806],{"type":14,"value":713},{"type":9,"tag":41,"props":15808,"children":15809},{"style":48},[15810],{"type":14,"value":68},{"type":9,"tag":41,"props":15812,"children":15813},{"style":71},[15814],{"type":14,"value":695},{"type":9,"tag":41,"props":15816,"children":15817},{"style":167},[15818],{"type":14,"value":1571},{"type":9,"tag":41,"props":15820,"children":15821},{"style":71},[15822],{"type":14,"value":695},{"type":9,"tag":41,"props":15824,"children":15825},{"style":48},[15826],{"type":14,"value":735},{"type":9,"tag":41,"props":15828,"children":15829},{"class":43,"line":640},[15830,15834,15838],{"type":9,"tag":41,"props":15831,"children":15832},{"style":48},[15833],{"type":14,"value":629},{"type":9,"tag":41,"props":15835,"children":15836},{"style":54},[15837],{"type":14,"value":658},{"type":9,"tag":41,"props":15839,"children":15840},{"style":48},[15841],{"type":14,"value":84},{"type":9,"tag":753,"props":15843,"children":15844},{},[15845],{"type":14,"value":757},{"title":22,"searchDepth":87,"depth":87,"links":15847},[],{"id":15849,"title":15850,"body":15851,"category":17001,"description":15,"difficulty":17001,"extension":17002,"index":17003,"keywords":17001,"links":17001,"meta":17004,"navigation":17001,"path":17005,"requires":17001,"seo":17006,"sitemap":17007,"stem":17008,"__hash__":17009},"docs\u002Fdocs\u002F2.auto-form\u002F2.field-types.md","字段类型",{"type":15852,"value":15853,"toc":16965},"minimark",[15854,15859,15868,15874,15880,15887,15890,15896,15900,15907,15909,15915,15919,15925,15927,15933,15937,15943,15945,15948,15951,15954,15958,15965,15971,15975,15978,15980,15986,15990,15997,15999,16005,16009,16020,16022,16026,16033,16039,16043,16046,16048,16054,16058,16065,16067,16073,16084,16086,16090,16095,16111,16114,16118,16121,16123,16126,16133,16135,16138,16142,16152,16156,16159,16161,16164,16167,16169,16172,16185,16189,16191,16195,16198,16226,16228,16232,16239,16482,16835,16840,16844,16847,16849,16855,16859,16866,16868,16874,16878,16885,16887,16893,16906,16928,16930,16934,16940,16943,16946,16948,16951,16960,16962],[15855,15856,15858],"h2",{"id":15857},"string-字符串","String 字符串",[15860,15861,15863,15864,15867],"note",{"to":15862},"https:\u002F\u002Fzod.dev\u002Fapi#strings","使用 ",[37,15865,15866],{},"afz.string()"," 创建字符串字段：",[15869,15870,15871],"h3",{"id":1647},[37,15872,15873],{},"Input",[15875,15876,15879],"callout",{"color":15877,"to":15878},"neutral","https:\u002F\u002Fui.nuxt.com\u002Fdocs\u002Fcomponents\u002Finput","Input 组件文档",[10,15881,15882,15883,15886],{},"基础输入框，通过 ",[37,15884,15885],{},"controlProps"," 配置图标、颜色等属性：",[15888,15889],"component-example",{":collapse":1006,"name":11321},[15869,15891,15893],{"id":15892},"textarea",[37,15894,15895],{},"Textarea",[15875,15897,15899],{"color":15877,"to":15898},"https:\u002F\u002Fui.nuxt.com\u002Fdocs\u002Fcomponents\u002Ftextarea","Textarea 组件文档",[10,15901,15902,15903,15906],{},"多行文本输入，设置 ",[37,15904,15905],{},"type: 'textarea'","，支持自动调整高度：",[15888,15908],{":collapse":1006,"name":13408},[15869,15910,15912],{"id":15911},"pininput",[37,15913,15914],{},"PinInput",[15875,15916,15918],{"color":15877,"to":15917},"https:\u002F\u002Fui.nuxt.com\u002Fdocs\u002Fcomponents\u002Fpin-input","PinInput 组件文档",[10,15920,15921,15922,464],{},"验证码或 PIN 码输入，设置 ",[37,15923,15924],{},"type: 'pinInput'",[15888,15926],{":collapse":1006,"name":12762},[15869,15928,15930],{"id":15929},"inputmenu",[37,15931,15932],{},"InputMenu",[15875,15934,15936],{"color":15877,"to":15935},"https:\u002F\u002Fui.nuxt.com\u002Fdocs\u002Fcomponents\u002Finput-menu","InputMenu 组件文档",[10,15938,15939,15940,464],{},"支持输入和下拉选择，设置 ",[37,15941,15942],{},"type: 'inputMenu'",[15888,15944],{":collapse":1006,"name":11992},[15869,15946,15947],{"id":15947},"动态类型",[10,15949,15950],{},"通过交互式示例切换输入框与文本域，并调整尺寸、颜色、行数、最大长度等配置。",[15888,15952],{":collapse":1006,"name":14069,":options":15953},"[{\"name\":\"type\",\"label\":\"type\",\"items\":[\"string\",\"textarea\"],\"default\":\"string\"},{\"name\":\"color\",\"items\":[\"error\",\"primary\",\"secondary\",\"success\",\"info\",\"warning\",\"neutral\"],\"default\":\"primary\"},{\"name\":\"size\",\"label\":\"size\",\"items\":[\"sm\",\"xs\",\"md\",\"lg\",\"xl\"],\"default\":\"sm\"},{\"name\":\"rows\",\"label\":\"rows\",\"default\":5},{\"name\":\"max-length\",\"label\":\"maxLength\",\"default\":20}]",[15855,15955,15957],{"id":15956},"number-数字","Number 数字",[15860,15959,15863,15961,15964],{"to":15960},"https:\u002F\u002Fzod.dev\u002Fapi#numbers",[37,15962,15963],{},"afz.number()"," 创建数字字段：",[15869,15966,15968],{"id":15967},"inputnumber",[37,15969,15970],{},"InputNumber",[15875,15972,15974],{"color":15877,"to":15973},"https:\u002F\u002Fui.nuxt.com\u002Fdocs\u002Fcomponents\u002Finput-number","InputNumber 组件文档",[10,15976,15977],{},"基础数字输入框，支持整数、小数、范围限制等配置：",[15888,15979],{":collapse":1006,"name":9319},[15869,15981,15983],{"id":15982},"slider",[37,15984,15985],{},"Slider",[15875,15987,15989],{"color":15877,"to":15988},"https:\u002F\u002Fui.nuxt.com\u002Fdocs\u002Fcomponents\u002Fslider","Slider 组件文档",[10,15991,15992,15993,15996],{},"数值滑块，设置 ",[37,15994,15995],{},"type: 'slider'","，适合有明确范围的数值选择：",[15888,15998],{":collapse":1006,"name":10668},[15869,16000,16002],{"id":16001},"inputrating",[37,16003,16004],{},"InputRating",[15875,16006,16008],{"color":15877,"to":16007},"https:\u002F\u002Fui.nuxt.com\u002Fdocs\u002Fcomponents\u002Finput-rating","InputRating 组件文档",[10,16010,16011,16012,16015,16016,16019],{},"评分输入，通过 ",[37,16013,16014],{},"component"," 直接传入 ",[37,16017,16018],{},"UInputRating"," 组件实例，支持半星粒度与自定义星数：",[15888,16021],{":collapse":1006,"name":9975},[15855,16023,16025],{"id":16024},"boolean-布尔","Boolean 布尔",[15860,16027,15863,16029,16032],{"to":16028},"https:\u002F\u002Fzod.dev\u002Fapi#booleans",[37,16030,16031],{},"afz.boolean()"," 创建布尔值字段：",[15869,16034,16036],{"id":16035},"checkbox",[37,16037,16038],{},"Checkbox",[15875,16040,16042],{"color":15877,"to":16041},"https:\u002F\u002Fui.nuxt.com\u002Fdocs\u002Fcomponents\u002Fcheckbox","Checkbox 组件文档",[10,16044,16045],{},"默认的复选框控件，适合单个选项的勾选：",[15888,16047],{":collapse":1006,"name":19},[15869,16049,16051],{"id":16050},"switch",[37,16052,16053],{},"Switch",[15875,16055,16057],{"color":15877,"to":16056},"https:\u002F\u002Fui.nuxt.com\u002Fdocs\u002Fcomponents\u002Fswitch","Switch 组件文档",[10,16059,16060,16061,16064],{},"开关控件，设置 ",[37,16062,16063],{},"type: 'switch'","，适合功能的启用\u002F禁用：",[15888,16066],{":collapse":1006,"name":763},[15869,16068,16070],{"id":16069},"toggle",[37,16071,16072],{},"Toggle",[10,16074,16075,16076,16079,16080,16083],{},"用 ",[37,16077,16078],{},"afz.boolean({ type: 'toggle' })"," 渲染可按下的布尔值按钮，适合置顶等操作。通过 ",[37,16081,16082],{},"controlProps.label"," 设置按钮文字。",[15888,16085],{":collapse":1006,"name":1357},[15855,16087,16089],{"id":16088},"date-日期时间","Date 日期时间",[16091,16092,16094],"tip",{"to":16093},"\u002Fdocs\u002Fcomponents\u002Fdate-picker#usedateformatter","useDateFormatter 文档：基于 @internationalized\u002Fdate 的日期格式化和处理工具。",[10,16096,15863,16097,16100,16101,16110],{},[37,16098,16099],{},"afz.calendarDate()"," 创建日期字段，基于 ",[16102,16103,16107],"a",{"href":16104,"rel":16105},"https:\u002F\u002Freact-spectrum.adobe.com\u002Finternationalized\u002Fdate\u002Findex.html",[16106],"nofollow",[37,16108,16109],{},"@internationalized\u002Fdate"," 提供强大的日期处理能力：",[15869,16112,16113],{"id":16113},"日期选择器",[15875,16115,16117],{"color":15877,"to":16116},"https:\u002F\u002Fui.nuxt.com\u002Fdocs\u002Fcomponents\u002Fcalendar","Calendar 组件文档",[10,16119,16120],{},"单日期选择，支持日期格式化和验证：",[15888,16122],{":collapse":1006,"name":1807},[15869,16124,16125],{"id":16125},"日期范围",[10,16127,16128,16129,16132],{},"日期范围选择，设置 ",[37,16130,16131],{},"controlProps.range: true","：",[15888,16134],{":collapse":1006,"name":2541},[15869,16136,16137],{"id":16137},"日期输入框",[15875,16139,16141],{"color":15877,"to":16140},"https:\u002F\u002Fui.nuxt.com\u002Fdocs\u002Fcomponents\u002Finput-date","InputDate 组件文档",[10,16143,15863,16144,16147,16148,16151],{},[37,16145,16146],{},"afz.inputDate()"," 创建日期输入框，基于 ",[37,16149,16150],{},"UInputDate"," 组件提供原生的日期输入体验。",[16153,16154,16155],"h4",{"id":16155},"单日期输入",[10,16157,16158],{},"简洁的日期输入框，适合表单填写场景：",[15888,16160],{":collapse":1006,"name":6538},[16153,16162,16163],{"id":16163},"日期范围输入",[10,16165,16166],{},"支持范围选择的日期输入框：",[15888,16168],{":collapse":1006,"name":7147},[15869,16170,16171],{"id":16171},"时间输入框",[10,16173,15863,16174,16177,16178,16181,16182,16184],{},[37,16175,16176],{},"afz.inputTime()"," 创建时间输入框，返回 ",[37,16179,16180],{},"Time"," 类型（来自 ",[37,16183,16109],{},"）：",[15875,16186,16188],{"color":15877,"to":16187},"https:\u002F\u002Fui.nuxt.com\u002Fdocs\u002Fcomponents\u002Finput-time","InputTime 组件文档",[15888,16190],{":collapse":1006,"name":7786},[15869,16192,16194],{"id":16193},"iso-格式字符串","ISO 格式字符串",[10,16196,16197],{},"对于需要 ISO 标准格式字符串的场景，提供三种工厂方法：",[16199,16200,16201,16212,16220],"ul",{},[16202,16203,16204,16207,16208,16211],"li",{},[37,16205,16206],{},"afz.isoDate()"," - 验证 ",[37,16209,16210],{},"YYYY-MM-DD"," 格式",[16202,16213,16214,16207,16217,16211],{},[37,16215,16216],{},"afz.isoTime()",[37,16218,16219],{},"HH:MM[:SS[.s+]]",[16202,16221,16222,16225],{},[37,16223,16224],{},"afz.isoDatetime()"," - 验证 ISO 8601 完整格式",[15888,16227],{":collapse":1006,"name":8567},[15855,16229,16231],{"id":16230},"enum-枚举","Enum 枚举",[15860,16233,15863,16235,16238],{"to":16234},"https:\u002F\u002Fzod.dev\u002Fapi#enums",[37,16236,16237],{},"afz.enum()"," 创建枚举字段：",[16091,16240,16241,16244],{},[10,16242,16243],{},"用于覆盖默认控件和配置元数据，支持三种配置方式：",[16245,16246,16247,16309,16419],"tabs",{},[16248,16249,16251,16258],"tabs-item",{"label":16250},"基础配置",[10,16252,16253,16254,16257],{},"不指定控件类型，使用默认的 ",[37,16255,16256],{},"select"," 控件：",[30,16259,16263],{"className":16260,"code":16261,"language":16262,"meta":22,"style":22},"language-ts shiki shiki-themes github-light github-light github-dark","afz.enum(['a', 'b'], {\n  label: '选择选项',\n  hint: '请选择一个'\n})\n","ts",[37,16264,16265,16287,16297,16305],{"__ignoreMap":22},[41,16266,16267,16271,16274,16276,16280,16282,16285],{"class":43,"line":44},[41,16268,16270],{"class":16269},"sxrX7","afz.",[41,16272,3403],{"class":16273},"snPdu",[41,16275,4141],{"class":16269},[41,16277,16279],{"class":16278},"sIIMD","'a'",[41,16281,365],{"class":16269},[41,16283,16284],{"class":16278},"'b'",[41,16286,15362],{"class":16269},[41,16288,16289,16292,16295],{"class":43,"line":87},[41,16290,16291],{"class":16269},"  label: ",[41,16293,16294],{"class":16278},"'选择选项'",[41,16296,539],{"class":16269},[41,16298,16299,16302],{"class":43,"line":117},[41,16300,16301],{"class":16269},"  hint: ",[41,16303,16304],{"class":16278},"'请选择一个'\n",[41,16306,16307],{"class":43,"line":143},[41,16308,423],{"class":16269},[16248,16310,16312,16318],{"label":16311},"使用注册控件",[10,16313,16314,16315,16317],{},"通过 ",[37,16316,2890],{}," 覆盖默认控件，同时保持输出类型不变：",[30,16319,16321],{"className":16260,"code":16320,"language":16262,"meta":22,"style":22},"afz.enum(['a', 'b', 'c'], {\n  type: 'radioGroup',  \u002F\u002F 覆盖默认的 select\n  controlProps: {\n    items: [\n      { label: '选项A', value: 'a' },\n      { label: '选项B', value: 'b' }\n    ]\n  }\n})\n\u002F\u002F 输出类型仍为：'a' | 'b' | 'c'\n\u002F\u002F 但使用 radioGroup 渲染\n",[37,16322,16323,16344,16358,16363,16368,16382,16395,16400,16405,16409,16414],{"__ignoreMap":22},[41,16324,16325,16327,16329,16331,16333,16335,16337,16339,16342],{"class":43,"line":44},[41,16326,16270],{"class":16269},[41,16328,3403],{"class":16273},[41,16330,4141],{"class":16269},[41,16332,16279],{"class":16278},[41,16334,365],{"class":16269},[41,16336,16284],{"class":16278},[41,16338,365],{"class":16269},[41,16340,16341],{"class":16278},"'c'",[41,16343,15362],{"class":16269},[41,16345,16346,16349,16351,16354],{"class":43,"line":87},[41,16347,16348],{"class":16269},"  type: ",[41,16350,3420],{"class":16278},[41,16352,16353],{"class":16269},",  ",[41,16355,16357],{"class":16356},"sCsY4","\u002F\u002F 覆盖默认的 select\n",[41,16359,16360],{"class":43,"line":117},[41,16361,16362],{"class":16269},"  controlProps: {\n",[41,16364,16365],{"class":43,"line":143},[41,16366,16367],{"class":16269},"    items: [\n",[41,16369,16370,16373,16376,16378,16380],{"class":43,"line":153},[41,16371,16372],{"class":16269},"      { label: ",[41,16374,16375],{"class":16278},"'选项A'",[41,16377,4836],{"class":16269},[41,16379,16279],{"class":16278},[41,16381,3493],{"class":16269},[41,16383,16384,16386,16389,16391,16393],{"class":43,"line":192},[41,16385,16372],{"class":16269},[41,16387,16388],{"class":16278},"'选项B'",[41,16390,4836],{"class":16269},[41,16392,16284],{"class":16278},[41,16394,1550],{"class":16269},[41,16396,16397],{"class":43,"line":219},[41,16398,16399],{"class":16269},"    ]\n",[41,16401,16402],{"class":43,"line":227},[41,16403,16404],{"class":16269},"  }\n",[41,16406,16407],{"class":43,"line":259},[41,16408,423],{"class":16269},[41,16410,16411],{"class":43,"line":277},[41,16412,16413],{"class":16356},"\u002F\u002F 输出类型仍为：'a' | 'b' | 'c'\n",[41,16415,16416],{"class":43,"line":286},[41,16417,16418],{"class":16356},"\u002F\u002F 但使用 radioGroup 渲染\n",[16248,16420,16422,16425],{"label":16421},"自定义组件",[10,16423,16424],{},"直接传入自定义组件实例：",[30,16426,16428],{"className":16260,"code":16427,"language":16262,"meta":22,"style":22},"import MyEnumControl from '.\u002FMyEnumControl.vue'\n\nafz.enum(['a', 'b'], {\n  component: MyEnumControl,\n  controlProps: { \u002F* ... *\u002F }\n})\n",[37,16429,16430,16443,16447,16463,16468,16478],{"__ignoreMap":22},[41,16431,16432,16435,16438,16440],{"class":43,"line":44},[41,16433,94],{"class":16434},"s8jYJ",[41,16436,16437],{"class":16269}," MyEnumControl ",[41,16439,109],{"class":16434},[41,16441,16442],{"class":16278}," '.\u002FMyEnumControl.vue'\n",[41,16444,16445],{"class":43,"line":87},[41,16446,150],{"emptyLinePlaceholder":147},[41,16448,16449,16451,16453,16455,16457,16459,16461],{"class":43,"line":117},[41,16450,16270],{"class":16269},[41,16452,3403],{"class":16273},[41,16454,4141],{"class":16269},[41,16456,16279],{"class":16278},[41,16458,365],{"class":16269},[41,16460,16284],{"class":16278},[41,16462,15362],{"class":16269},[41,16464,16465],{"class":43,"line":143},[41,16466,16467],{"class":16269},"  component: MyEnumControl,\n",[41,16469,16470,16473,16476],{"class":43,"line":153},[41,16471,16472],{"class":16269},"  controlProps: { ",[41,16474,16475],{"class":16356},"\u002F* ... *\u002F",[41,16477,1550],{"class":16269},[41,16479,16480],{"class":43,"line":192},[41,16481,423],{"class":16269},[16091,16483,16484,16495],{},[10,16485,16486,16487,16490,16491,16494],{},"枚举值配置：",[37,16488,16489],{},"controlProps.items"," 以最高优先级决定渲染内容，",[37,16492,16493],{},"enum()"," 的第一个参数决定输出类型，两者可以兼用。",[16199,16496,16497,16602,16705],{},[16202,16498,16499,16500,16132,16503],{},"方式 1：自动提取枚举值，系统会自动将枚举值转换为 ",[37,16501,16502],{},"items",[30,16504,16506],{"className":16260,"code":16505,"language":16262,"meta":22,"style":22},"const Fruits = ['apple', 'banana', 'orange'] as const\n\nconst schema = afz.object({\n  fruit: afz.enum(Fruits, {\n    type: 'selectMenu',\n    controlProps: {\n      placeholder: '选择水果'\n      \u002F\u002F 系统自动转换：items: ['apple', 'banana', 'orange']\n    }\n  })\n})\n",[37,16507,16508,16539,16543,16557,16566,16574,16578,16585,16590,16594,16598],{"__ignoreMap":22},[41,16509,16510,16512,16516,16518,16521,16523,16525,16527,16529,16531,16533,16536],{"class":43,"line":44},[41,16511,159],{"class":16434},[41,16513,16515],{"class":16514},"sBjJW"," Fruits",[41,16517,207],{"class":16434},[41,16519,16520],{"class":16269}," [",[41,16522,4841],{"class":16278},[41,16524,365],{"class":16269},[41,16526,4866],{"class":16278},[41,16528,365],{"class":16269},[41,16530,4891],{"class":16278},[41,16532,12279],{"class":16269},[41,16534,16535],{"class":16434},"as",[41,16537,16538],{"class":16434}," const\n",[41,16540,16541],{"class":43,"line":87},[41,16542,150],{"emptyLinePlaceholder":147},[41,16544,16545,16547,16549,16551,16553,16555],{"class":43,"line":117},[41,16546,159],{"class":16434},[41,16548,237],{"class":16514},[41,16550,207],{"class":16434},[41,16552,246],{"class":16269},[41,16554,251],{"class":16273},[41,16556,256],{"class":16269},[41,16558,16559,16561,16563],{"class":43,"line":143},[41,16560,4749],{"class":16269},[41,16562,3403],{"class":16273},[41,16564,16565],{"class":16269},"(Fruits, {\n",[41,16567,16568,16570,16572],{"class":43,"line":153},[41,16569,973],{"class":16269},[41,16571,4769],{"class":16278},[41,16573,539],{"class":16269},[41,16575,16576],{"class":43,"line":192},[41,16577,283],{"class":16269},[41,16579,16580,16582],{"class":43,"line":219},[41,16581,4231],{"class":16269},[41,16583,16584],{"class":16278},"'选择水果'\n",[41,16586,16587],{"class":43,"line":227},[41,16588,16589],{"class":16356},"      \u002F\u002F 系统自动转换：items: ['apple', 'banana', 'orange']\n",[41,16591,16592],{"class":43,"line":259},[41,16593,306],{"class":16269},[41,16595,16596],{"class":43,"line":277},[41,16597,315],{"class":16269},[41,16599,16600],{"class":43,"line":286},[41,16601,423],{"class":16269},[16202,16603,16604,16605,16608,16609,16611,16612],{},"方式 2：手动提供 items，使用空数组 ",[37,16606,16607],{},"[]"," 作为第一个参数，完全由 ",[37,16610,16502],{}," 决定类型和渲染：",[30,16613,16615],{"className":16260,"code":16614,"language":16262,"meta":22,"style":22},"const schema = afz.object({\nfruit: afz.enum([], {\n  type: 'selectMenu',\n  controlProps: {\n    valueKey: 'value',\n    items: [\n      { label: '苹果', value: 'apple' },\n      { label: '香蕉', value: 'banana' }\n    ]\n  }\n})\n})\n",[37,16616,16617,16631,16640,16648,16652,16661,16665,16677,16689,16693,16697,16701],{"__ignoreMap":22},[41,16618,16619,16621,16623,16625,16627,16629],{"class":43,"line":44},[41,16620,159],{"class":16434},[41,16622,237],{"class":16514},[41,16624,207],{"class":16434},[41,16626,246],{"class":16269},[41,16628,251],{"class":16273},[41,16630,256],{"class":16269},[41,16632,16633,16636,16638],{"class":43,"line":87},[41,16634,16635],{"class":16269},"fruit: afz.",[41,16637,3403],{"class":16273},[41,16639,3408],{"class":16269},[41,16641,16642,16644,16646],{"class":43,"line":117},[41,16643,16348],{"class":16269},[41,16645,4769],{"class":16278},[41,16647,539],{"class":16269},[41,16649,16650],{"class":43,"line":143},[41,16651,16362],{"class":16269},[41,16653,16654,16657,16659],{"class":43,"line":153},[41,16655,16656],{"class":16269},"    valueKey: ",[41,16658,4808],{"class":16278},[41,16660,539],{"class":16269},[41,16662,16663],{"class":43,"line":192},[41,16664,16367],{"class":16269},[41,16666,16667,16669,16671,16673,16675],{"class":43,"line":219},[41,16668,16372],{"class":16269},[41,16670,4831],{"class":16278},[41,16672,4836],{"class":16269},[41,16674,4841],{"class":16278},[41,16676,3493],{"class":16269},[41,16678,16679,16681,16683,16685,16687],{"class":43,"line":227},[41,16680,16372],{"class":16269},[41,16682,4857],{"class":16278},[41,16684,4836],{"class":16269},[41,16686,4866],{"class":16278},[41,16688,1550],{"class":16269},[41,16690,16691],{"class":43,"line":259},[41,16692,16399],{"class":16269},[41,16694,16695],{"class":43,"line":277},[41,16696,16404],{"class":16269},[41,16698,16699],{"class":43,"line":286},[41,16700,423],{"class":16269},[41,16702,16703],{"class":43,"line":300},[41,16704,423],{"class":16269},[16202,16706,16707,16708,16710,16711],{},"方式 3：类型 + 自定义显示（推荐），同时使用枚举参数和 ",[37,16709,16502],{},"，既保证类型安全，又自定义显示：",[30,16712,16714],{"className":16260,"code":16713,"language":16262,"meta":22,"style":22},"const schema = afz.object({\ngender: afz.enum(['male', 'female', 'other'], {\n  type: 'radioGroup',\n  controlProps: {\n    items: [\n      { label: '男', value: 'male' },\n      { label: '女', value: 'female' },\n      { label: '其他', value: 'other' }\n    ]\n  }\n})\n})\n\u002F\u002F 输出类型：'male' | 'female' | 'other'\n\u002F\u002F 显示内容：男 \u002F 女 \u002F 其他\n",[37,16715,16716,16730,16754,16762,16766,16770,16783,16796,16809,16813,16817,16821,16825,16830],{"__ignoreMap":22},[41,16717,16718,16720,16722,16724,16726,16728],{"class":43,"line":44},[41,16719,159],{"class":16434},[41,16721,237],{"class":16514},[41,16723,207],{"class":16434},[41,16725,246],{"class":16269},[41,16727,251],{"class":16273},[41,16729,256],{"class":16269},[41,16731,16732,16735,16737,16739,16742,16744,16747,16749,16752],{"class":43,"line":87},[41,16733,16734],{"class":16269},"gender: afz.",[41,16736,3403],{"class":16273},[41,16738,4141],{"class":16269},[41,16740,16741],{"class":16278},"'male'",[41,16743,365],{"class":16269},[41,16745,16746],{"class":16278},"'female'",[41,16748,365],{"class":16269},[41,16750,16751],{"class":16278},"'other'",[41,16753,15362],{"class":16269},[41,16755,16756,16758,16760],{"class":43,"line":117},[41,16757,16348],{"class":16269},[41,16759,3420],{"class":16278},[41,16761,539],{"class":16269},[41,16763,16764],{"class":43,"line":143},[41,16765,16362],{"class":16269},[41,16767,16768],{"class":43,"line":153},[41,16769,16367],{"class":16269},[41,16771,16772,16774,16777,16779,16781],{"class":43,"line":192},[41,16773,16372],{"class":16269},[41,16775,16776],{"class":16278},"'男'",[41,16778,4836],{"class":16269},[41,16780,16741],{"class":16278},[41,16782,3493],{"class":16269},[41,16784,16785,16787,16790,16792,16794],{"class":43,"line":219},[41,16786,16372],{"class":16269},[41,16788,16789],{"class":16278},"'女'",[41,16791,4836],{"class":16269},[41,16793,16746],{"class":16278},[41,16795,3493],{"class":16269},[41,16797,16798,16800,16803,16805,16807],{"class":43,"line":227},[41,16799,16372],{"class":16269},[41,16801,16802],{"class":16278},"'其他'",[41,16804,4836],{"class":16269},[41,16806,16751],{"class":16278},[41,16808,1550],{"class":16269},[41,16810,16811],{"class":43,"line":259},[41,16812,16399],{"class":16269},[41,16814,16815],{"class":43,"line":277},[41,16816,16404],{"class":16269},[41,16818,16819],{"class":43,"line":286},[41,16820,423],{"class":16269},[41,16822,16823],{"class":43,"line":300},[41,16824,423],{"class":16269},[41,16826,16827],{"class":43,"line":309},[41,16828,16829],{"class":16356},"\u002F\u002F 输出类型：'male' | 'female' | 'other'\n",[41,16831,16832],{"class":43,"line":318},[41,16833,16834],{"class":16356},"\u002F\u002F 显示内容：男 \u002F 女 \u002F 其他\n",[15869,16836,16837],{"id":16256},[37,16838,16839],{},"Select",[15875,16841,16843],{"color":15877,"to":16842},"https:\u002F\u002Fui.nuxt.com\u002Fdocs\u002Fcomponents\u002Fselect","Select 组件文档",[10,16845,16846],{},"原生选择框，适合简单的枚举值：",[15888,16848],{":collapse":1006,"name":3938},[15869,16850,16852],{"id":16851},"selectmenu",[37,16853,16854],{},"SelectMenu",[15875,16856,16858],{"color":15877,"to":16857},"https:\u002F\u002Fui.nuxt.com\u002Fdocs\u002Fcomponents\u002Fselect-menu","SelectMenu 组件文档",[10,16860,16861,16862,16865],{},"下拉菜单，设置 ",[37,16863,16864],{},"type: 'selectMenu'","，支持搜索、图标、分组：",[15888,16867],{":collapse":1006,"name":4555},[15869,16869,16871],{"id":16870},"radiogroup",[37,16872,16873],{},"RadioGroup",[15875,16875,16877],{"color":15877,"to":16876},"https:\u002F\u002Fui.nuxt.com\u002Fdocs\u002Fcomponents\u002Fradio-group","RadioGroup 组件文档",[10,16879,16880,16881,16884],{},"单选按钮组，设置 ",[37,16882,16883],{},"type: 'radioGroup'","，适合 2-4 个选项：",[15888,16886],{":collapse":1006,"name":3204},[15869,16888,16890],{"id":16889},"togglegroup",[37,16891,16892],{},"ToggleGroup",[10,16894,16075,16895,16898,16899,16901,16902,16905],{},[37,16896,16897],{},"afz.enum(values, { type: 'toggleGroup' })"," 渲染单选按钮组。AutoForm 根据枚举值生成选项，也可以通过 ",[37,16900,16489],{}," 提供自定义标签。再次点击已选项会清空选值。允许清空时，给 schema 加上 ",[37,16903,16904],{},".optional()","。",[10,16907,16908,16909,16912,16913,16916,16917,16919,16920,16923,16924,16927],{},"多选使用 ",[37,16910,16911],{},"afz.array()","，设置 ",[37,16914,16915],{},"type: 'toggleGroup'","，并在 ",[37,16918,15885],{}," 中传入 ",[37,16921,16922],{},"type: 'multiple'"," 和选项对象数组。表单值是所选选项的 ",[37,16925,16926],{},"value"," 数组。",[15888,16929],{":collapse":1006,"name":15185},[15855,16931,16933],{"id":16932},"file-文件","File 文件",[15860,16935,15863,16936,16939],{},[37,16937,16938],{},"afz.file()"," 创建文件上传字段：",[15869,16941,16942],{"id":16942},"单文件上传",[10,16944,16945],{},"基础的单文件上传：",[15888,16947],{":collapse":1006,"name":5948},[15869,16949,16950],{"id":16950},"多文件上传",[10,16952,16953,16954,16956,16957,16132],{},"多文件上传，使用 ",[37,16955,5445],{}," 配合 ",[37,16958,16959],{},"type: 'file'",[15888,16961],{":collapse":1006,"name":5246},[753,16963,16964],{},"html pre.shiki code .sxrX7, html code.shiki .sxrX7{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .snPdu, html code.shiki .snPdu{--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sIIMD, html code.shiki .sIIMD{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sCsY4, html code.shiki .sCsY4{--shiki-light:#6A737D;--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .s8jYJ, html code.shiki .s8jYJ{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sBjJW, html code.shiki .sBjJW{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF}",{"title":22,"searchDepth":87,"depth":87,"links":16966},[16967,16974,16979,16984,16991,16997],{"id":15857,"depth":87,"text":15858,"children":16968},[16969,16970,16971,16972,16973],{"id":1647,"depth":117,"text":15873},{"id":15892,"depth":117,"text":15895},{"id":15911,"depth":117,"text":15914},{"id":15929,"depth":117,"text":15932},{"id":15947,"depth":117,"text":15947},{"id":15956,"depth":87,"text":15957,"children":16975},[16976,16977,16978],{"id":15967,"depth":117,"text":15970},{"id":15982,"depth":117,"text":15985},{"id":16001,"depth":117,"text":16004},{"id":16024,"depth":87,"text":16025,"children":16980},[16981,16982,16983],{"id":16035,"depth":117,"text":16038},{"id":16050,"depth":117,"text":16053},{"id":16069,"depth":117,"text":16072},{"id":16088,"depth":87,"text":16089,"children":16985},[16986,16987,16988,16989,16990],{"id":16113,"depth":117,"text":16113},{"id":16125,"depth":117,"text":16125},{"id":16137,"depth":117,"text":16137},{"id":16171,"depth":117,"text":16171},{"id":16193,"depth":117,"text":16194},{"id":16230,"depth":87,"text":16231,"children":16992},[16993,16994,16995,16996],{"id":16256,"depth":117,"text":16839},{"id":16851,"depth":117,"text":16854},{"id":16870,"depth":117,"text":16873},{"id":16889,"depth":117,"text":16892},{"id":16932,"depth":87,"text":16933,"children":16998},[16999,17000],{"id":16942,"depth":117,"text":16942},{"id":16950,"depth":117,"text":16950},null,"md",false,{},"\u002Fdocs\u002Fauto-form\u002Ffield-types",{"title":15850,"description":15},{"loc":17005},"docs\u002F2.auto-form\u002F2.field-types","brsWuhdCbf1050EuWoR6s0eZxdccvx0ICKXJIEnywuc",[17011],{"title":17012,"path":17013,"stem":17014,"children":17015,"page":17003},"Docs","\u002Fdocs","docs",[17016,17055,17106,17144,17183],{"title":17017,"path":17018,"stem":17019,"children":17020,"category":17001,"description":17001,"icon":17054},"快速开始","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started\u002F1.index",[17021,17024,17029,17034,17039,17044,17049],{"title":17022,"path":17018,"stem":17019,"category":17001,"description":17023},"介绍","了解 Movk Nuxt 的表单、数据表格、组件和 API 集成，并选择适合 Nuxt 或 Vue + Vite 项目的接入方式。",{"title":17025,"path":17026,"stem":17027,"category":17001,"description":17028},"安装","\u002Fdocs\u002Fgetting-started\u002Finstallation","docs\u002F1.getting-started\u002F2.installation","在 Nuxt 4 项目中安装和配置 Movk Nuxt 模块。",{"title":17030,"path":17031,"stem":17032,"category":17001,"description":17033},"模块配置","\u002Fdocs\u002Fgetting-started\u002Fconfiguration","docs\u002F1.getting-started\u002F3.configuration","配置组件前缀、主题颜色、字体、API 端点、认证策略、响应解析规则和 Toast 提示行为。",{"title":17035,"path":17036,"stem":17037,"category":17001,"description":17038},"Vue \u002F Vite","\u002Fdocs\u002Fgetting-started\u002Fvue","docs\u002F1.getting-started\u002F4.vue","在纯 Vue + Vite 项目中使用 Movk 的独立组件、主题与 Composables，无需 Nuxt。",{"title":17040,"path":17041,"stem":17042,"category":17001,"description":17043},"主题系统","\u002Fdocs\u002Fgetting-started\u002Ftheme","docs\u002F1.getting-started\u002F5.theme","通过模块默认值、ThemePicker 组件和 useTheme composable 管理颜色、圆角、图标集与深色模式，字体则在构建期配置。",{"title":17045,"path":17046,"stem":17047,"category":17001,"description":17048},"迁移到 v2","\u002Fdocs\u002Fgetting-started\u002Fmigration","docs\u002F1.getting-started\u002F6.migration","从 v1 升级到 v2 时需要处理的破坏性变更。",{"title":17050,"path":17051,"stem":17052,"category":17001,"description":17053},"AI 集成","\u002Fdocs\u002Fgetting-started\u002Fai","docs\u002F1.getting-started\u002F7.ai","通过 MCP、llms.txt 与 Skills 让 AI 助手理解 Movk Nuxt。","i-lucide-square-play",{"title":17056,"category":17001,"description":17001,"icon":17057,"path":17058,"stem":17059,"children":17060,"page":17003},"表单","i-lucide-square-pen","\u002Fdocs\u002Fauto-form","docs\u002F2.auto-form",[17061,17065,17070,17071,17076,17081,17086,17091,17096,17101],{"title":17017,"path":17062,"stem":17063,"category":17001,"description":17064},"\u002Fdocs\u002Fauto-form\u002Fquickstart","docs\u002F2.auto-form\u002F1.quickstart","了解 AutoForm 的核心设计理念和基本使用方式。",{"title":17066,"path":17067,"stem":17068,"category":17001,"description":17069},"实战示例","\u002Fdocs\u002Fauto-form\u002Frecipes","docs\u002F2.auto-form\u002F10.recipes","登录、注册分组校验、多文件上传与横向搜索表单等 AutoForm 组合场景。",{"title":15850,"path":17005,"stem":17008,"category":17001,"description":15},{"title":17072,"path":17073,"stem":17074,"category":17001,"description":17075},"对象与数组","\u002Fdocs\u002Fauto-form\u002Fobject-array","docs\u002F2.auto-form\u002F3.object-array","嵌套对象与动态数组字段的渲染与增删。",{"title":17077,"path":17078,"stem":17079,"category":17001,"description":17080},"控件","\u002Fdocs\u002Fauto-form\u002Fcontrols","docs\u002F2.auto-form\u002F4.controls","通过 type 字段将 schema 映射到 Nuxt UI 控件，或注册、直接传入自定义 Vue 组件扩展表单字段。",{"title":17082,"path":17083,"stem":17084,"category":17001,"description":17085},"元数据与布局","\u002Fdocs\u002Fauto-form\u002Fmetadata-layout","docs\u002F2.auto-form\u002F5.metadata-layout","通过 meta 配置字段属性，并用 afz.layout 组织布局。",{"title":17087,"path":17088,"stem":17089,"category":17001,"description":17090},"插槽","\u002Fdocs\u002Fauto-form\u002Fslots","docs\u002F2.auto-form\u002F6.slots","通过具名插槽自定义 AutoForm 的头尾、字段控件、字段前后与布局内容。",{"title":17092,"path":17093,"stem":17094,"category":17001,"description":17095},"联动与提交","\u002Fdocs\u002Fauto-form\u002Freactive-submit","docs\u002F2.auto-form\u002F7.reactive-submit","字段间响应式联动与表单提交处理。",{"title":17097,"path":17098,"stem":17099,"category":17001,"description":17100},"SearchForm","\u002Fdocs\u002Fauto-form\u002Fsearch-form","docs\u002F2.auto-form\u002F8.search-form","Schema 驱动的可折叠搜索表单组件。",{"title":17102,"path":17103,"stem":17104,"category":17001,"description":17105},"useAutoForm","\u002Fdocs\u002Fauto-form\u002Fuse-auto-form","docs\u002F2.auto-form\u002F9.use-auto-form","用于创建类型化 Zod Schema 和管理 AutoForm 控件的 composable。",{"title":17107,"path":17108,"stem":17109,"children":17110,"category":17001,"description":17001,"icon":17143},"DataTable","\u002Fdocs\u002Fdata-table","docs\u002F3.data-table\u002F1.index",[17111,17113,17118,17123,17128,17133,17138],{"title":17022,"path":17108,"stem":17109,"category":17001,"description":17112},"基于 TanStack Table 的声明式数据表格，含列配置、选择、展开、树形、分页、加载更多与完整 API 参考。",{"title":17114,"path":17115,"stem":17116,"category":17001,"description":17117},"外观","\u002Fdocs\u002Fdata-table\u002Fappearance","docs\u002F3.data-table\u002F2.appearance","组件样式覆盖、分页样式覆盖、斑马纹与边框、视觉密度、内容自适应、空值占位与粘性表头。",{"title":17119,"path":17120,"stem":17121,"category":17001,"description":17122},"列配置","\u002Fdocs\u002Fdata-table\u002Fcolumns","docs\u002F3.data-table\u002F3.columns","数据列的固定、排序、列固定切换、列宽拖拽、文本截断、Tooltip、可见性与函数式配置。",{"title":17124,"path":17125,"stem":17126,"category":17001,"description":17127},"特殊列","\u002Fdocs\u002Fdata-table\u002Fspecial-columns","docs\u002F3.data-table\u002F4.special-columns","选择列、索引列、行固定列与操作列的配置，含树形选择策略、动态按钮与二次确认。",{"title":17129,"path":17130,"stem":17131,"category":17001,"description":17132},"行为与交互","\u002Fdocs\u002Fdata-table\u002Frows","docs\u002F3.data-table\u002F5.rows","行选择、展开详情、点击行为、动态行样式、悬停、右键菜单与编程式控制。",{"title":17134,"path":17135,"stem":17136,"category":17001,"description":17137},"树形数据","\u002Fdocs\u002Fdata-table\u002Ftree","docs\u002F3.data-table\u002F6.tree","通过 childrenKey 启用树形表格，配置展开、级联选择策略、缩进与选中结果读取。",{"title":17139,"path":17140,"stem":17141,"category":17001,"description":17142},"分页与加载更多","\u002Fdocs\u002Fdata-table\u002Fpagination","docs\u002F3.data-table\u002F7.pagination","客户端自动分页、服务端手动分页与加载状态，以及触底加载、无限滚动的实用参数。","i-lucide-table",{"title":17145,"path":17146,"stem":17147,"children":17148,"category":17001,"description":17001,"icon":17182},"API","\u002Fdocs\u002Fapi","docs\u002F4.api\u002F1.index",[17149,17152,17157,17162,17167,17172,17177],{"title":17150,"path":17146,"stem":17147,"category":17001,"description":17151},"概览","Nuxt 数据获取基础与 Movk Nuxt API 系统的核心概念和架构设计。",{"title":17153,"path":17154,"stem":17155,"category":17001,"description":17156},"$api","\u002Fdocs\u002Fapi\u002Fapi-plugin","docs\u002F4.api\u002F2.api-plugin","由 api.factory 插件创建的增强型 $fetch 实例，支持认证注入、数据解包、业务检查和多端点切换。",{"title":17158,"path":17159,"stem":17160,"category":17001,"description":17161},"hooks","\u002Fdocs\u002Fapi\u002Fhooks","docs\u002F4.api\u002F3.hooks","通过 Nuxt 运行时 Hook 扩展 API 系统行为，实现全局请求拦截、错误处理和 401 自定义处理。",{"title":17163,"path":17164,"stem":17165,"category":17001,"description":17166},"useApiFetch","\u002Fdocs\u002Fapi\u002Fuse-api-fetch","docs\u002F4.api\u002F4.use-api-fetch","基于 Nuxt useFetch 封装的 API 请求 composable，提供自动认证、业务状态码检查和 Toast 提示。",{"title":17168,"path":17169,"stem":17170,"category":17001,"description":17171},"上传与下载","\u002Fdocs\u002Fapi\u002Fupload-download","docs\u002F4.api\u002F5.upload-download","带进度监控的文件上传与下载。",{"title":17173,"path":17174,"stem":17175,"category":17001,"description":17176},"流式请求","\u002Fdocs\u002Fapi\u002Fstream","docs\u002F4.api\u002F6.stream","SSE 流式请求与 AI SDK Chat Transport。",{"title":17178,"path":17179,"stem":17180,"category":17001,"description":17181},"API 架构设计","\u002Fdocs\u002Fapi\u002Farchitecture","docs\u002F4.api\u002F7.architecture","厘清 @movk\u002Fnuxt 的职责边界，用最小化分层组织直连后端、同源代理与最小化 BFF，并梳理两类 Auth 的完整闭环。","i-lucide-cloud",{"title":17184,"category":17001,"description":17001,"icon":17185,"path":17186,"stem":17187,"children":17188,"page":17003},"Components","i-lucide-box","\u002Fdocs\u002Fcomponents","docs\u002F5.components",[17189,17195,17201],{"title":17190,"path":17191,"stem":17192,"category":17193,"description":17194},"DatePicker","\u002Fdocs\u002Fcomponents\u002Fdate-picker","docs\u002F5.components\u002Fdate-picker","advanced","基于国际化标准的日期选择器组件。",{"title":17196,"path":17197,"stem":17198,"category":17199,"description":17200},"MessageBox","\u002Fdocs\u002Fcomponents\u002Fmessage-box","docs\u002F5.components\u002Fmessage-box","feedback","模态消息对话框，提供声明式与编程式两种调用方式。",{"title":17202,"path":17203,"stem":17204,"category":17193,"description":17205,"badge":17206},"Tree","\u002Fdocs\u002Fcomponents\u002Ftree","docs\u002F5.components\u002Ftree","基于 Nuxt UI Tree 的树形组件，补齐搜索、懒加载、工具栏、复选框与父子策略。","v1.4.2",{"data":17208,"body":17209},{},{"type":6,"children":17210},[17211],{"type":9,"tag":10,"props":17212,"children":17213},{},[17214,17216],{"type":14,"value":17215},"Copyright © 2025 - 2026 YiXuan - ",{"type":9,"tag":41,"props":17217,"children":17220},{"className":17218},[17219],"text-highlighted",[17221],{"type":14,"value":17222},"MIT License",[17224,17225],{"title":17066,"path":17067,"stem":17068,"description":17069,"children":-1},{"title":17072,"path":17073,"stem":17074,"description":17075,"children":-1},1795763776944,"237a5cff-9aba-4421-be98-81a239f14b62"]