[{"data":1,"prerenderedAt":6095,"buildId":6096},["ShallowReactive",2],{"-docs-auto-form-reactive-submit-description":3,"component-example-autoFormReactiveConditionalExample":16,"component-example-autoFormReactiveConditionalExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":20,"component-example-autoFormReactiveDependentExample":1525,"component-example-autoFormReactiveDependentExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":1529,"component-example-autoFormSubmitAutoExample":2387,"component-example-autoFormSubmitAutoExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":2391,"component-example-autoFormSubmitErrorExample":2932,"component-example-autoFormSubmitErrorExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":2936,"component-example-autoFormSubmitManualExample":3713,"component-example-autoFormSubmitManualExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":3717,"component-example-autoFormSubmitRefExample":4436,"component-example-autoFormSubmitRefExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":4440,"docs--docs-auto-form-reactive-submit":5458,"docs-navigation-zh-CN":5881,"mdc-d0lvp9-key":6076,"surround--docs-auto-form-reactive-submit":6092},{"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","字段间响应式联动与表单提交处理。",{"code":17,"filePath":18,"pascalName":19},"\u003Cscript lang=\"ts\" setup>\nimport type { FormSubmitEvent } from '@nuxt\u002Fui'\nimport type { z } from 'zod'\nimport type { AutoFormFieldContext } from '@movk\u002Fnuxt'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  accountType: afz\n    .enum(['personal', 'business'])\n    .default('personal')\n    .meta({ label: '账户类型', description: '切换后观察 company\u002Ftax 字段的挂载与卸载' }),\n\n  username: afz\n    .string({ controlProps: { placeholder: '请输入用户名' } })\n    .min(3, '用户名至少需要 3 个字符')\n    .meta({ label: '用户名' }),\n\n  companyName: afz\n    .string({ controlProps: { placeholder: '请输入公司名称' } })\n    .meta({\n      label: '公司名称（if）',\n      hint: 'if：仅企业账户挂载，个人账户下字段不创建、不参与校验',\n      if: ({ state }: AutoFormFieldContext) => state?.accountType === 'business'\n    }),\n\n  taxId: afz\n    .string({ controlProps: { placeholder: '请输入税号' } })\n    .meta({\n      label: '税号（if）',\n      hint: 'if：与公司名称同条件挂载',\n      if: ({ state }: AutoFormFieldContext) => state?.accountType === 'business'\n    }),\n\n  agreeToTerms: afz\n    .boolean()\n    .default(false)\n    .meta({ label: '同意服务条款', description: '勾选后下方订阅字段显示' }),\n\n  newsletter: afz\n    .boolean()\n    .default(true)\n    .meta({\n      label: '订阅邮件通知（hidden）',\n      description: 'hidden：未同意条款时隐藏，但字段始终保留在 DOM 与表单数据中',\n      hidden: ({ state }: AutoFormFieldContext) => !state?.agreeToTerms\n    })\n})\n\ntype Schema = z.output\u003Ctypeof schema>\n\nconst form = ref\u003CPartial\u003CSchema>>({})\n\nasync function onSubmit(event: FormSubmitEvent\u003CSchema>) {\n  toast.add({\n    title: '提交成功',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm v-model=\"form\" :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Freactive\u002FAutoFormReactiveConditionalExample.vue","AutoFormReactiveConditionalExample",{"data":21,"body":23,"toc":1523},{"title":22,"description":22},"",{"type":6,"children":24},[25,1517],{"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'\nimport type { AutoFormFieldContext } from '@movk\u002Fnuxt'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  accountType: afz\n    .enum(['personal', 'business'])\n    .default('personal')\n    .meta({ label: '账户类型', description: '切换后观察 company\u002Ftax 字段的挂载与卸载' }),\n\n  username: afz\n    .string({ controlProps: { placeholder: '请输入用户名' } })\n    .min(3, '用户名至少需要 3 个字符')\n    .meta({ label: '用户名' }),\n\n  companyName: afz\n    .string({ controlProps: { placeholder: '请输入公司名称' } })\n    .meta({\n      label: '公司名称（if）',\n      hint: 'if：仅企业账户挂载，个人账户下字段不创建、不参与校验',\n      if: ({ state }: AutoFormFieldContext) => state?.accountType === 'business'\n    }),\n\n  taxId: afz\n    .string({ controlProps: { placeholder: '请输入税号' } })\n    .meta({\n      label: '税号（if）',\n      hint: 'if：与公司名称同条件挂载',\n      if: ({ state }: AutoFormFieldContext) => state?.accountType === 'business'\n    }),\n\n  agreeToTerms: afz\n    .boolean()\n    .default(false)\n    .meta({ label: '同意服务条款', description: '勾选后下方订阅字段显示' }),\n\n  newsletter: afz\n    .boolean()\n    .default(true)\n    .meta({\n      label: '订阅邮件通知（hidden）',\n      description: 'hidden：未同意条款时隐藏，但字段始终保留在 DOM 与表单数据中',\n      hidden: ({ state }: AutoFormFieldContext) => !state?.agreeToTerms\n    })\n})\n\ntype Schema = z.output\u003Ctypeof schema>\n\nconst form = ref\u003CPartial\u003CSchema>>({})\n\nasync function onSubmit(event: FormSubmitEvent\u003CSchema>) {\n  toast.add({\n    title: '提交成功',\n    color: 'success',\n    description: JSON.stringify(event.data, null, 2)\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm v-model=\"form\" :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,167,177,216,243,251,283,292,331,358,396,404,413,441,476,501,509,518,543,559,578,596,656,665,673,682,707,723,740,757,805,813,821,830,847,872,906,914,923,939,964,980,997,1015,1062,1071,1080,1088,1135,1143,1188,1196,1246,1264,1282,1300,1346,1355,1364,1381,1389,1406,1501],{"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,149,153,158,162],{"type":9,"tag":41,"props":146,"children":147},{"style":91},[148],{"type":14,"value":94},{"type":9,"tag":41,"props":150,"children":151},{"style":91},[152],{"type":14,"value":99},{"type":9,"tag":41,"props":154,"children":155},{"style":48},[156],{"type":14,"value":157}," { AutoFormFieldContext } ",{"type":9,"tag":41,"props":159,"children":160},{"style":91},[161],{"type":14,"value":109},{"type":9,"tag":41,"props":163,"children":164},{"style":71},[165],{"type":14,"value":166}," '@movk\u002Fnuxt'\n",{"type":9,"tag":41,"props":168,"children":170},{"class":43,"line":169},5,[171],{"type":9,"tag":41,"props":172,"children":174},{"emptyLinePlaceholder":173},true,[175],{"type":14,"value":176},"\n",{"type":9,"tag":41,"props":178,"children":180},{"class":43,"line":179},6,[181,186,191,197,202,206,211],{"type":9,"tag":41,"props":182,"children":183},{"style":91},[184],{"type":14,"value":185},"const",{"type":9,"tag":41,"props":187,"children":188},{"style":48},[189],{"type":14,"value":190}," { ",{"type":9,"tag":41,"props":192,"children":194},{"style":193},"--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF",[195],{"type":14,"value":196},"afz",{"type":9,"tag":41,"props":198,"children":199},{"style":48},[200],{"type":14,"value":201}," } ",{"type":9,"tag":41,"props":203,"children":204},{"style":91},[205],{"type":14,"value":68},{"type":9,"tag":41,"props":207,"children":208},{"style":60},[209],{"type":14,"value":210}," useAutoForm",{"type":9,"tag":41,"props":212,"children":213},{"style":48},[214],{"type":14,"value":215},"()\n",{"type":9,"tag":41,"props":217,"children":219},{"class":43,"line":218},7,[220,224,229,234,239],{"type":9,"tag":41,"props":221,"children":222},{"style":91},[223],{"type":14,"value":185},{"type":9,"tag":41,"props":225,"children":226},{"style":193},[227],{"type":14,"value":228}," toast",{"type":9,"tag":41,"props":230,"children":231},{"style":91},[232],{"type":14,"value":233}," =",{"type":9,"tag":41,"props":235,"children":236},{"style":60},[237],{"type":14,"value":238}," useToast",{"type":9,"tag":41,"props":240,"children":241},{"style":48},[242],{"type":14,"value":215},{"type":9,"tag":41,"props":244,"children":246},{"class":43,"line":245},8,[247],{"type":9,"tag":41,"props":248,"children":249},{"emptyLinePlaceholder":173},[250],{"type":14,"value":176},{"type":9,"tag":41,"props":252,"children":254},{"class":43,"line":253},9,[255,259,264,268,273,278],{"type":9,"tag":41,"props":256,"children":257},{"style":91},[258],{"type":14,"value":185},{"type":9,"tag":41,"props":260,"children":261},{"style":193},[262],{"type":14,"value":263}," schema",{"type":9,"tag":41,"props":265,"children":266},{"style":91},[267],{"type":14,"value":233},{"type":9,"tag":41,"props":269,"children":270},{"style":48},[271],{"type":14,"value":272}," afz.",{"type":9,"tag":41,"props":274,"children":275},{"style":60},[276],{"type":14,"value":277},"object",{"type":9,"tag":41,"props":279,"children":280},{"style":48},[281],{"type":14,"value":282},"({\n",{"type":9,"tag":41,"props":284,"children":286},{"class":43,"line":285},10,[287],{"type":9,"tag":41,"props":288,"children":289},{"style":48},[290],{"type":14,"value":291},"  accountType: afz\n",{"type":9,"tag":41,"props":293,"children":295},{"class":43,"line":294},11,[296,301,306,311,316,321,326],{"type":9,"tag":41,"props":297,"children":298},{"style":48},[299],{"type":14,"value":300},"    .",{"type":9,"tag":41,"props":302,"children":303},{"style":60},[304],{"type":14,"value":305},"enum",{"type":9,"tag":41,"props":307,"children":308},{"style":48},[309],{"type":14,"value":310},"([",{"type":9,"tag":41,"props":312,"children":313},{"style":71},[314],{"type":14,"value":315},"'personal'",{"type":9,"tag":41,"props":317,"children":318},{"style":48},[319],{"type":14,"value":320},", ",{"type":9,"tag":41,"props":322,"children":323},{"style":71},[324],{"type":14,"value":325},"'business'",{"type":9,"tag":41,"props":327,"children":328},{"style":48},[329],{"type":14,"value":330},"])\n",{"type":9,"tag":41,"props":332,"children":334},{"class":43,"line":333},12,[335,339,344,349,353],{"type":9,"tag":41,"props":336,"children":337},{"style":48},[338],{"type":14,"value":300},{"type":9,"tag":41,"props":340,"children":341},{"style":60},[342],{"type":14,"value":343},"default",{"type":9,"tag":41,"props":345,"children":346},{"style":48},[347],{"type":14,"value":348},"(",{"type":9,"tag":41,"props":350,"children":351},{"style":71},[352],{"type":14,"value":315},{"type":9,"tag":41,"props":354,"children":355},{"style":48},[356],{"type":14,"value":357},")\n",{"type":9,"tag":41,"props":359,"children":361},{"class":43,"line":360},13,[362,366,371,376,381,386,391],{"type":9,"tag":41,"props":363,"children":364},{"style":48},[365],{"type":14,"value":300},{"type":9,"tag":41,"props":367,"children":368},{"style":60},[369],{"type":14,"value":370},"meta",{"type":9,"tag":41,"props":372,"children":373},{"style":48},[374],{"type":14,"value":375},"({ label: ",{"type":9,"tag":41,"props":377,"children":378},{"style":71},[379],{"type":14,"value":380},"'账户类型'",{"type":9,"tag":41,"props":382,"children":383},{"style":48},[384],{"type":14,"value":385},", description: ",{"type":9,"tag":41,"props":387,"children":388},{"style":71},[389],{"type":14,"value":390},"'切换后观察 company\u002Ftax 字段的挂载与卸载'",{"type":9,"tag":41,"props":392,"children":393},{"style":48},[394],{"type":14,"value":395}," }),\n",{"type":9,"tag":41,"props":397,"children":399},{"class":43,"line":398},14,[400],{"type":9,"tag":41,"props":401,"children":402},{"emptyLinePlaceholder":173},[403],{"type":14,"value":176},{"type":9,"tag":41,"props":405,"children":407},{"class":43,"line":406},15,[408],{"type":9,"tag":41,"props":409,"children":410},{"style":48},[411],{"type":14,"value":412},"  username: afz\n",{"type":9,"tag":41,"props":414,"children":416},{"class":43,"line":415},16,[417,421,426,431,436],{"type":9,"tag":41,"props":418,"children":419},{"style":48},[420],{"type":14,"value":300},{"type":9,"tag":41,"props":422,"children":423},{"style":60},[424],{"type":14,"value":425},"string",{"type":9,"tag":41,"props":427,"children":428},{"style":48},[429],{"type":14,"value":430},"({ controlProps: { placeholder: ",{"type":9,"tag":41,"props":432,"children":433},{"style":71},[434],{"type":14,"value":435},"'请输入用户名'",{"type":9,"tag":41,"props":437,"children":438},{"style":48},[439],{"type":14,"value":440}," } })\n",{"type":9,"tag":41,"props":442,"children":444},{"class":43,"line":443},17,[445,449,454,458,463,467,472],{"type":9,"tag":41,"props":446,"children":447},{"style":48},[448],{"type":14,"value":300},{"type":9,"tag":41,"props":450,"children":451},{"style":60},[452],{"type":14,"value":453},"min",{"type":9,"tag":41,"props":455,"children":456},{"style":48},[457],{"type":14,"value":348},{"type":9,"tag":41,"props":459,"children":460},{"style":193},[461],{"type":14,"value":462},"3",{"type":9,"tag":41,"props":464,"children":465},{"style":48},[466],{"type":14,"value":320},{"type":9,"tag":41,"props":468,"children":469},{"style":71},[470],{"type":14,"value":471},"'用户名至少需要 3 个字符'",{"type":9,"tag":41,"props":473,"children":474},{"style":48},[475],{"type":14,"value":357},{"type":9,"tag":41,"props":477,"children":479},{"class":43,"line":478},18,[480,484,488,492,497],{"type":9,"tag":41,"props":481,"children":482},{"style":48},[483],{"type":14,"value":300},{"type":9,"tag":41,"props":485,"children":486},{"style":60},[487],{"type":14,"value":370},{"type":9,"tag":41,"props":489,"children":490},{"style":48},[491],{"type":14,"value":375},{"type":9,"tag":41,"props":493,"children":494},{"style":71},[495],{"type":14,"value":496},"'用户名'",{"type":9,"tag":41,"props":498,"children":499},{"style":48},[500],{"type":14,"value":395},{"type":9,"tag":41,"props":502,"children":504},{"class":43,"line":503},19,[505],{"type":9,"tag":41,"props":506,"children":507},{"emptyLinePlaceholder":173},[508],{"type":14,"value":176},{"type":9,"tag":41,"props":510,"children":512},{"class":43,"line":511},20,[513],{"type":9,"tag":41,"props":514,"children":515},{"style":48},[516],{"type":14,"value":517},"  companyName: afz\n",{"type":9,"tag":41,"props":519,"children":521},{"class":43,"line":520},21,[522,526,530,534,539],{"type":9,"tag":41,"props":523,"children":524},{"style":48},[525],{"type":14,"value":300},{"type":9,"tag":41,"props":527,"children":528},{"style":60},[529],{"type":14,"value":425},{"type":9,"tag":41,"props":531,"children":532},{"style":48},[533],{"type":14,"value":430},{"type":9,"tag":41,"props":535,"children":536},{"style":71},[537],{"type":14,"value":538},"'请输入公司名称'",{"type":9,"tag":41,"props":540,"children":541},{"style":48},[542],{"type":14,"value":440},{"type":9,"tag":41,"props":544,"children":546},{"class":43,"line":545},22,[547,551,555],{"type":9,"tag":41,"props":548,"children":549},{"style":48},[550],{"type":14,"value":300},{"type":9,"tag":41,"props":552,"children":553},{"style":60},[554],{"type":14,"value":370},{"type":9,"tag":41,"props":556,"children":557},{"style":48},[558],{"type":14,"value":282},{"type":9,"tag":41,"props":560,"children":562},{"class":43,"line":561},23,[563,568,573],{"type":9,"tag":41,"props":564,"children":565},{"style":48},[566],{"type":14,"value":567},"      label: ",{"type":9,"tag":41,"props":569,"children":570},{"style":71},[571],{"type":14,"value":572},"'公司名称（if）'",{"type":9,"tag":41,"props":574,"children":575},{"style":48},[576],{"type":14,"value":577},",\n",{"type":9,"tag":41,"props":579,"children":581},{"class":43,"line":580},24,[582,587,592],{"type":9,"tag":41,"props":583,"children":584},{"style":48},[585],{"type":14,"value":586},"      hint: ",{"type":9,"tag":41,"props":588,"children":589},{"style":71},[590],{"type":14,"value":591},"'if：仅企业账户挂载，个人账户下字段不创建、不参与校验'",{"type":9,"tag":41,"props":593,"children":594},{"style":48},[595],{"type":14,"value":577},{"type":9,"tag":41,"props":597,"children":599},{"class":43,"line":598},25,[600,605,610,616,621,626,631,636,641,646,651],{"type":9,"tag":41,"props":601,"children":602},{"style":60},[603],{"type":14,"value":604},"      if",{"type":9,"tag":41,"props":606,"children":607},{"style":48},[608],{"type":14,"value":609},": ({ ",{"type":9,"tag":41,"props":611,"children":613},{"style":612},"--shiki-light:#E36209;--shiki-default:#E36209;--shiki-dark:#FFAB70",[614],{"type":14,"value":615},"state",{"type":9,"tag":41,"props":617,"children":618},{"style":48},[619],{"type":14,"value":620}," }",{"type":9,"tag":41,"props":622,"children":623},{"style":91},[624],{"type":14,"value":625},":",{"type":9,"tag":41,"props":627,"children":628},{"style":60},[629],{"type":14,"value":630}," AutoFormFieldContext",{"type":9,"tag":41,"props":632,"children":633},{"style":48},[634],{"type":14,"value":635},") ",{"type":9,"tag":41,"props":637,"children":638},{"style":91},[639],{"type":14,"value":640},"=>",{"type":9,"tag":41,"props":642,"children":643},{"style":48},[644],{"type":14,"value":645}," state?.accountType ",{"type":9,"tag":41,"props":647,"children":648},{"style":91},[649],{"type":14,"value":650},"===",{"type":9,"tag":41,"props":652,"children":653},{"style":71},[654],{"type":14,"value":655}," 'business'\n",{"type":9,"tag":41,"props":657,"children":659},{"class":43,"line":658},26,[660],{"type":9,"tag":41,"props":661,"children":662},{"style":48},[663],{"type":14,"value":664},"    }),\n",{"type":9,"tag":41,"props":666,"children":668},{"class":43,"line":667},27,[669],{"type":9,"tag":41,"props":670,"children":671},{"emptyLinePlaceholder":173},[672],{"type":14,"value":176},{"type":9,"tag":41,"props":674,"children":676},{"class":43,"line":675},28,[677],{"type":9,"tag":41,"props":678,"children":679},{"style":48},[680],{"type":14,"value":681},"  taxId: afz\n",{"type":9,"tag":41,"props":683,"children":685},{"class":43,"line":684},29,[686,690,694,698,703],{"type":9,"tag":41,"props":687,"children":688},{"style":48},[689],{"type":14,"value":300},{"type":9,"tag":41,"props":691,"children":692},{"style":60},[693],{"type":14,"value":425},{"type":9,"tag":41,"props":695,"children":696},{"style":48},[697],{"type":14,"value":430},{"type":9,"tag":41,"props":699,"children":700},{"style":71},[701],{"type":14,"value":702},"'请输入税号'",{"type":9,"tag":41,"props":704,"children":705},{"style":48},[706],{"type":14,"value":440},{"type":9,"tag":41,"props":708,"children":710},{"class":43,"line":709},30,[711,715,719],{"type":9,"tag":41,"props":712,"children":713},{"style":48},[714],{"type":14,"value":300},{"type":9,"tag":41,"props":716,"children":717},{"style":60},[718],{"type":14,"value":370},{"type":9,"tag":41,"props":720,"children":721},{"style":48},[722],{"type":14,"value":282},{"type":9,"tag":41,"props":724,"children":726},{"class":43,"line":725},31,[727,731,736],{"type":9,"tag":41,"props":728,"children":729},{"style":48},[730],{"type":14,"value":567},{"type":9,"tag":41,"props":732,"children":733},{"style":71},[734],{"type":14,"value":735},"'税号（if）'",{"type":9,"tag":41,"props":737,"children":738},{"style":48},[739],{"type":14,"value":577},{"type":9,"tag":41,"props":741,"children":743},{"class":43,"line":742},32,[744,748,753],{"type":9,"tag":41,"props":745,"children":746},{"style":48},[747],{"type":14,"value":586},{"type":9,"tag":41,"props":749,"children":750},{"style":71},[751],{"type":14,"value":752},"'if：与公司名称同条件挂载'",{"type":9,"tag":41,"props":754,"children":755},{"style":48},[756],{"type":14,"value":577},{"type":9,"tag":41,"props":758,"children":760},{"class":43,"line":759},33,[761,765,769,773,777,781,785,789,793,797,801],{"type":9,"tag":41,"props":762,"children":763},{"style":60},[764],{"type":14,"value":604},{"type":9,"tag":41,"props":766,"children":767},{"style":48},[768],{"type":14,"value":609},{"type":9,"tag":41,"props":770,"children":771},{"style":612},[772],{"type":14,"value":615},{"type":9,"tag":41,"props":774,"children":775},{"style":48},[776],{"type":14,"value":620},{"type":9,"tag":41,"props":778,"children":779},{"style":91},[780],{"type":14,"value":625},{"type":9,"tag":41,"props":782,"children":783},{"style":60},[784],{"type":14,"value":630},{"type":9,"tag":41,"props":786,"children":787},{"style":48},[788],{"type":14,"value":635},{"type":9,"tag":41,"props":790,"children":791},{"style":91},[792],{"type":14,"value":640},{"type":9,"tag":41,"props":794,"children":795},{"style":48},[796],{"type":14,"value":645},{"type":9,"tag":41,"props":798,"children":799},{"style":91},[800],{"type":14,"value":650},{"type":9,"tag":41,"props":802,"children":803},{"style":71},[804],{"type":14,"value":655},{"type":9,"tag":41,"props":806,"children":808},{"class":43,"line":807},34,[809],{"type":9,"tag":41,"props":810,"children":811},{"style":48},[812],{"type":14,"value":664},{"type":9,"tag":41,"props":814,"children":816},{"class":43,"line":815},35,[817],{"type":9,"tag":41,"props":818,"children":819},{"emptyLinePlaceholder":173},[820],{"type":14,"value":176},{"type":9,"tag":41,"props":822,"children":824},{"class":43,"line":823},36,[825],{"type":9,"tag":41,"props":826,"children":827},{"style":48},[828],{"type":14,"value":829},"  agreeToTerms: afz\n",{"type":9,"tag":41,"props":831,"children":833},{"class":43,"line":832},37,[834,838,843],{"type":9,"tag":41,"props":835,"children":836},{"style":48},[837],{"type":14,"value":300},{"type":9,"tag":41,"props":839,"children":840},{"style":60},[841],{"type":14,"value":842},"boolean",{"type":9,"tag":41,"props":844,"children":845},{"style":48},[846],{"type":14,"value":215},{"type":9,"tag":41,"props":848,"children":850},{"class":43,"line":849},38,[851,855,859,863,868],{"type":9,"tag":41,"props":852,"children":853},{"style":48},[854],{"type":14,"value":300},{"type":9,"tag":41,"props":856,"children":857},{"style":60},[858],{"type":14,"value":343},{"type":9,"tag":41,"props":860,"children":861},{"style":48},[862],{"type":14,"value":348},{"type":9,"tag":41,"props":864,"children":865},{"style":193},[866],{"type":14,"value":867},"false",{"type":9,"tag":41,"props":869,"children":870},{"style":48},[871],{"type":14,"value":357},{"type":9,"tag":41,"props":873,"children":875},{"class":43,"line":874},39,[876,880,884,888,893,897,902],{"type":9,"tag":41,"props":877,"children":878},{"style":48},[879],{"type":14,"value":300},{"type":9,"tag":41,"props":881,"children":882},{"style":60},[883],{"type":14,"value":370},{"type":9,"tag":41,"props":885,"children":886},{"style":48},[887],{"type":14,"value":375},{"type":9,"tag":41,"props":889,"children":890},{"style":71},[891],{"type":14,"value":892},"'同意服务条款'",{"type":9,"tag":41,"props":894,"children":895},{"style":48},[896],{"type":14,"value":385},{"type":9,"tag":41,"props":898,"children":899},{"style":71},[900],{"type":14,"value":901},"'勾选后下方订阅字段显示'",{"type":9,"tag":41,"props":903,"children":904},{"style":48},[905],{"type":14,"value":395},{"type":9,"tag":41,"props":907,"children":909},{"class":43,"line":908},40,[910],{"type":9,"tag":41,"props":911,"children":912},{"emptyLinePlaceholder":173},[913],{"type":14,"value":176},{"type":9,"tag":41,"props":915,"children":917},{"class":43,"line":916},41,[918],{"type":9,"tag":41,"props":919,"children":920},{"style":48},[921],{"type":14,"value":922},"  newsletter: afz\n",{"type":9,"tag":41,"props":924,"children":926},{"class":43,"line":925},42,[927,931,935],{"type":9,"tag":41,"props":928,"children":929},{"style":48},[930],{"type":14,"value":300},{"type":9,"tag":41,"props":932,"children":933},{"style":60},[934],{"type":14,"value":842},{"type":9,"tag":41,"props":936,"children":937},{"style":48},[938],{"type":14,"value":215},{"type":9,"tag":41,"props":940,"children":942},{"class":43,"line":941},43,[943,947,951,955,960],{"type":9,"tag":41,"props":944,"children":945},{"style":48},[946],{"type":14,"value":300},{"type":9,"tag":41,"props":948,"children":949},{"style":60},[950],{"type":14,"value":343},{"type":9,"tag":41,"props":952,"children":953},{"style":48},[954],{"type":14,"value":348},{"type":9,"tag":41,"props":956,"children":957},{"style":193},[958],{"type":14,"value":959},"true",{"type":9,"tag":41,"props":961,"children":962},{"style":48},[963],{"type":14,"value":357},{"type":9,"tag":41,"props":965,"children":967},{"class":43,"line":966},44,[968,972,976],{"type":9,"tag":41,"props":969,"children":970},{"style":48},[971],{"type":14,"value":300},{"type":9,"tag":41,"props":973,"children":974},{"style":60},[975],{"type":14,"value":370},{"type":9,"tag":41,"props":977,"children":978},{"style":48},[979],{"type":14,"value":282},{"type":9,"tag":41,"props":981,"children":983},{"class":43,"line":982},45,[984,988,993],{"type":9,"tag":41,"props":985,"children":986},{"style":48},[987],{"type":14,"value":567},{"type":9,"tag":41,"props":989,"children":990},{"style":71},[991],{"type":14,"value":992},"'订阅邮件通知（hidden）'",{"type":9,"tag":41,"props":994,"children":995},{"style":48},[996],{"type":14,"value":577},{"type":9,"tag":41,"props":998,"children":1000},{"class":43,"line":999},46,[1001,1006,1011],{"type":9,"tag":41,"props":1002,"children":1003},{"style":48},[1004],{"type":14,"value":1005},"      description: ",{"type":9,"tag":41,"props":1007,"children":1008},{"style":71},[1009],{"type":14,"value":1010},"'hidden：未同意条款时隐藏，但字段始终保留在 DOM 与表单数据中'",{"type":9,"tag":41,"props":1012,"children":1013},{"style":48},[1014],{"type":14,"value":577},{"type":9,"tag":41,"props":1016,"children":1018},{"class":43,"line":1017},47,[1019,1024,1028,1032,1036,1040,1044,1048,1052,1057],{"type":9,"tag":41,"props":1020,"children":1021},{"style":60},[1022],{"type":14,"value":1023},"      hidden",{"type":9,"tag":41,"props":1025,"children":1026},{"style":48},[1027],{"type":14,"value":609},{"type":9,"tag":41,"props":1029,"children":1030},{"style":612},[1031],{"type":14,"value":615},{"type":9,"tag":41,"props":1033,"children":1034},{"style":48},[1035],{"type":14,"value":620},{"type":9,"tag":41,"props":1037,"children":1038},{"style":91},[1039],{"type":14,"value":625},{"type":9,"tag":41,"props":1041,"children":1042},{"style":60},[1043],{"type":14,"value":630},{"type":9,"tag":41,"props":1045,"children":1046},{"style":48},[1047],{"type":14,"value":635},{"type":9,"tag":41,"props":1049,"children":1050},{"style":91},[1051],{"type":14,"value":640},{"type":9,"tag":41,"props":1053,"children":1054},{"style":91},[1055],{"type":14,"value":1056}," !",{"type":9,"tag":41,"props":1058,"children":1059},{"style":48},[1060],{"type":14,"value":1061},"state?.agreeToTerms\n",{"type":9,"tag":41,"props":1063,"children":1065},{"class":43,"line":1064},48,[1066],{"type":9,"tag":41,"props":1067,"children":1068},{"style":48},[1069],{"type":14,"value":1070},"    })\n",{"type":9,"tag":41,"props":1072,"children":1074},{"class":43,"line":1073},49,[1075],{"type":9,"tag":41,"props":1076,"children":1077},{"style":48},[1078],{"type":14,"value":1079},"})\n",{"type":9,"tag":41,"props":1081,"children":1083},{"class":43,"line":1082},50,[1084],{"type":9,"tag":41,"props":1085,"children":1086},{"emptyLinePlaceholder":173},[1087],{"type":14,"value":176},{"type":9,"tag":41,"props":1089,"children":1091},{"class":43,"line":1090},51,[1092,1097,1102,1106,1111,1116,1121,1125,1130],{"type":9,"tag":41,"props":1093,"children":1094},{"style":91},[1095],{"type":14,"value":1096},"type",{"type":9,"tag":41,"props":1098,"children":1099},{"style":60},[1100],{"type":14,"value":1101}," Schema",{"type":9,"tag":41,"props":1103,"children":1104},{"style":91},[1105],{"type":14,"value":233},{"type":9,"tag":41,"props":1107,"children":1108},{"style":60},[1109],{"type":14,"value":1110}," z",{"type":9,"tag":41,"props":1112,"children":1113},{"style":48},[1114],{"type":14,"value":1115},".",{"type":9,"tag":41,"props":1117,"children":1118},{"style":60},[1119],{"type":14,"value":1120},"output",{"type":9,"tag":41,"props":1122,"children":1123},{"style":48},[1124],{"type":14,"value":51},{"type":9,"tag":41,"props":1126,"children":1127},{"style":91},[1128],{"type":14,"value":1129},"typeof",{"type":9,"tag":41,"props":1131,"children":1132},{"style":48},[1133],{"type":14,"value":1134}," schema>\n",{"type":9,"tag":41,"props":1136,"children":1138},{"class":43,"line":1137},52,[1139],{"type":9,"tag":41,"props":1140,"children":1141},{"emptyLinePlaceholder":173},[1142],{"type":14,"value":176},{"type":9,"tag":41,"props":1144,"children":1146},{"class":43,"line":1145},53,[1147,1151,1156,1160,1165,1169,1174,1178,1183],{"type":9,"tag":41,"props":1148,"children":1149},{"style":91},[1150],{"type":14,"value":185},{"type":9,"tag":41,"props":1152,"children":1153},{"style":193},[1154],{"type":14,"value":1155}," form",{"type":9,"tag":41,"props":1157,"children":1158},{"style":91},[1159],{"type":14,"value":233},{"type":9,"tag":41,"props":1161,"children":1162},{"style":60},[1163],{"type":14,"value":1164}," ref",{"type":9,"tag":41,"props":1166,"children":1167},{"style":48},[1168],{"type":14,"value":51},{"type":9,"tag":41,"props":1170,"children":1171},{"style":60},[1172],{"type":14,"value":1173},"Partial",{"type":9,"tag":41,"props":1175,"children":1176},{"style":48},[1177],{"type":14,"value":51},{"type":9,"tag":41,"props":1179,"children":1180},{"style":60},[1181],{"type":14,"value":1182},"Schema",{"type":9,"tag":41,"props":1184,"children":1185},{"style":48},[1186],{"type":14,"value":1187},">>({})\n",{"type":9,"tag":41,"props":1189,"children":1191},{"class":43,"line":1190},54,[1192],{"type":9,"tag":41,"props":1193,"children":1194},{"emptyLinePlaceholder":173},[1195],{"type":14,"value":176},{"type":9,"tag":41,"props":1197,"children":1199},{"class":43,"line":1198},55,[1200,1205,1210,1215,1219,1224,1228,1233,1237,1241],{"type":9,"tag":41,"props":1201,"children":1202},{"style":91},[1203],{"type":14,"value":1204},"async",{"type":9,"tag":41,"props":1206,"children":1207},{"style":91},[1208],{"type":14,"value":1209}," function",{"type":9,"tag":41,"props":1211,"children":1212},{"style":60},[1213],{"type":14,"value":1214}," onSubmit",{"type":9,"tag":41,"props":1216,"children":1217},{"style":48},[1218],{"type":14,"value":348},{"type":9,"tag":41,"props":1220,"children":1221},{"style":612},[1222],{"type":14,"value":1223},"event",{"type":9,"tag":41,"props":1225,"children":1226},{"style":91},[1227],{"type":14,"value":625},{"type":9,"tag":41,"props":1229,"children":1230},{"style":60},[1231],{"type":14,"value":1232}," FormSubmitEvent",{"type":9,"tag":41,"props":1234,"children":1235},{"style":48},[1236],{"type":14,"value":51},{"type":9,"tag":41,"props":1238,"children":1239},{"style":60},[1240],{"type":14,"value":1182},{"type":9,"tag":41,"props":1242,"children":1243},{"style":48},[1244],{"type":14,"value":1245},">) {\n",{"type":9,"tag":41,"props":1247,"children":1249},{"class":43,"line":1248},56,[1250,1255,1260],{"type":9,"tag":41,"props":1251,"children":1252},{"style":48},[1253],{"type":14,"value":1254},"  toast.",{"type":9,"tag":41,"props":1256,"children":1257},{"style":60},[1258],{"type":14,"value":1259},"add",{"type":9,"tag":41,"props":1261,"children":1262},{"style":48},[1263],{"type":14,"value":282},{"type":9,"tag":41,"props":1265,"children":1267},{"class":43,"line":1266},57,[1268,1273,1278],{"type":9,"tag":41,"props":1269,"children":1270},{"style":48},[1271],{"type":14,"value":1272},"    title: ",{"type":9,"tag":41,"props":1274,"children":1275},{"style":71},[1276],{"type":14,"value":1277},"'提交成功'",{"type":9,"tag":41,"props":1279,"children":1280},{"style":48},[1281],{"type":14,"value":577},{"type":9,"tag":41,"props":1283,"children":1285},{"class":43,"line":1284},58,[1286,1291,1296],{"type":9,"tag":41,"props":1287,"children":1288},{"style":48},[1289],{"type":14,"value":1290},"    color: ",{"type":9,"tag":41,"props":1292,"children":1293},{"style":71},[1294],{"type":14,"value":1295},"'success'",{"type":9,"tag":41,"props":1297,"children":1298},{"style":48},[1299],{"type":14,"value":577},{"type":9,"tag":41,"props":1301,"children":1303},{"class":43,"line":1302},59,[1304,1309,1314,1318,1323,1328,1333,1337,1342],{"type":9,"tag":41,"props":1305,"children":1306},{"style":48},[1307],{"type":14,"value":1308},"    description: ",{"type":9,"tag":41,"props":1310,"children":1311},{"style":193},[1312],{"type":14,"value":1313},"JSON",{"type":9,"tag":41,"props":1315,"children":1316},{"style":48},[1317],{"type":14,"value":1115},{"type":9,"tag":41,"props":1319,"children":1320},{"style":60},[1321],{"type":14,"value":1322},"stringify",{"type":9,"tag":41,"props":1324,"children":1325},{"style":48},[1326],{"type":14,"value":1327},"(event.data, ",{"type":9,"tag":41,"props":1329,"children":1330},{"style":193},[1331],{"type":14,"value":1332},"null",{"type":9,"tag":41,"props":1334,"children":1335},{"style":48},[1336],{"type":14,"value":320},{"type":9,"tag":41,"props":1338,"children":1339},{"style":193},[1340],{"type":14,"value":1341},"2",{"type":9,"tag":41,"props":1343,"children":1344},{"style":48},[1345],{"type":14,"value":357},{"type":9,"tag":41,"props":1347,"children":1349},{"class":43,"line":1348},60,[1350],{"type":9,"tag":41,"props":1351,"children":1352},{"style":48},[1353],{"type":14,"value":1354},"  })\n",{"type":9,"tag":41,"props":1356,"children":1358},{"class":43,"line":1357},61,[1359],{"type":9,"tag":41,"props":1360,"children":1361},{"style":48},[1362],{"type":14,"value":1363},"}\n",{"type":9,"tag":41,"props":1365,"children":1367},{"class":43,"line":1366},62,[1368,1373,1377],{"type":9,"tag":41,"props":1369,"children":1370},{"style":48},[1371],{"type":14,"value":1372},"\u003C\u002F",{"type":9,"tag":41,"props":1374,"children":1375},{"style":54},[1376],{"type":14,"value":57},{"type":9,"tag":41,"props":1378,"children":1379},{"style":48},[1380],{"type":14,"value":84},{"type":9,"tag":41,"props":1382,"children":1384},{"class":43,"line":1383},63,[1385],{"type":9,"tag":41,"props":1386,"children":1387},{"emptyLinePlaceholder":173},[1388],{"type":14,"value":176},{"type":9,"tag":41,"props":1390,"children":1392},{"class":43,"line":1391},64,[1393,1397,1402],{"type":9,"tag":41,"props":1394,"children":1395},{"style":48},[1396],{"type":14,"value":51},{"type":9,"tag":41,"props":1398,"children":1399},{"style":54},[1400],{"type":14,"value":1401},"template",{"type":9,"tag":41,"props":1403,"children":1404},{"style":48},[1405],{"type":14,"value":84},{"type":9,"tag":41,"props":1407,"children":1409},{"class":43,"line":1408},65,[1410,1415,1420,1425,1429,1434,1439,1443,1448,1453,1457,1461,1465,1469,1474,1479,1483,1487,1492,1496],{"type":9,"tag":41,"props":1411,"children":1412},{"style":48},[1413],{"type":14,"value":1414},"  \u003C",{"type":9,"tag":41,"props":1416,"children":1417},{"style":54},[1418],{"type":14,"value":1419},"MAutoForm",{"type":9,"tag":41,"props":1421,"children":1422},{"style":60},[1423],{"type":14,"value":1424}," v-model",{"type":9,"tag":41,"props":1426,"children":1427},{"style":48},[1428],{"type":14,"value":68},{"type":9,"tag":41,"props":1430,"children":1431},{"style":71},[1432],{"type":14,"value":1433},"\"",{"type":9,"tag":41,"props":1435,"children":1436},{"style":48},[1437],{"type":14,"value":1438},"form",{"type":9,"tag":41,"props":1440,"children":1441},{"style":71},[1442],{"type":14,"value":1433},{"type":9,"tag":41,"props":1444,"children":1445},{"style":48},[1446],{"type":14,"value":1447}," :",{"type":9,"tag":41,"props":1449,"children":1450},{"style":60},[1451],{"type":14,"value":1452},"schema",{"type":9,"tag":41,"props":1454,"children":1455},{"style":48},[1456],{"type":14,"value":68},{"type":9,"tag":41,"props":1458,"children":1459},{"style":71},[1460],{"type":14,"value":1433},{"type":9,"tag":41,"props":1462,"children":1463},{"style":48},[1464],{"type":14,"value":1452},{"type":9,"tag":41,"props":1466,"children":1467},{"style":71},[1468],{"type":14,"value":1433},{"type":9,"tag":41,"props":1470,"children":1471},{"style":48},[1472],{"type":14,"value":1473}," @",{"type":9,"tag":41,"props":1475,"children":1476},{"style":60},[1477],{"type":14,"value":1478},"submit",{"type":9,"tag":41,"props":1480,"children":1481},{"style":48},[1482],{"type":14,"value":68},{"type":9,"tag":41,"props":1484,"children":1485},{"style":71},[1486],{"type":14,"value":1433},{"type":9,"tag":41,"props":1488,"children":1489},{"style":48},[1490],{"type":14,"value":1491},"onSubmit",{"type":9,"tag":41,"props":1493,"children":1494},{"style":71},[1495],{"type":14,"value":1433},{"type":9,"tag":41,"props":1497,"children":1498},{"style":48},[1499],{"type":14,"value":1500}," \u002F>\n",{"type":9,"tag":41,"props":1502,"children":1504},{"class":43,"line":1503},66,[1505,1509,1513],{"type":9,"tag":41,"props":1506,"children":1507},{"style":48},[1508],{"type":14,"value":1372},{"type":9,"tag":41,"props":1510,"children":1511},{"style":54},[1512],{"type":14,"value":1401},{"type":9,"tag":41,"props":1514,"children":1515},{"style":48},[1516],{"type":14,"value":84},{"type":9,"tag":1518,"props":1519,"children":1520},"style",{},[1521],{"type":14,"value":1522},"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":1524},[],{"code":1526,"filePath":1527,"pascalName":1528},"\u003Cscript lang=\"ts\" setup>\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\n\nconst countryOptions = ['CN', 'US', 'JP'] as const\ntype CountryCode = typeof countryOptions[number]\n\nconst cityItemsByCountry: Record\u003CCountryCode, string[]> = {\n  CN: ['北京', '上海', '广州'],\n  US: ['New York', 'San Francisco', 'Seattle'],\n  JP: ['Tokyo', 'Osaka', 'Kyoto']\n}\n\nconst schema = afz.object({\n  country: afz.enum(countryOptions).default('CN').meta({ label: '国家' }),\n  city: afz.enum([], {\n    type: 'enum',\n    controlProps: ({ state }) => ({\n      items: cityItemsByCountry[(state.country as CountryCode | undefined) ?? 'CN']\n    })\n  }).meta({ label: '城市', hint: '选项随国家变化，切换国家后会清空已选城市' })\n})\n\nconst state = reactive\u003CPartial\u003Cz.output\u003Ctypeof schema>>>({})\n\nwatch(() => state.country, () => {\n  state.city = undefined\n})\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm v-model=\"state\" :schema=\"schema\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Freactive\u002FAutoFormReactiveDependentExample.vue","AutoFormReactiveDependentExample",{"data":1530,"body":1531,"toc":2385},{"title":22,"description":22},{"type":6,"children":1532},[1533,2381],{"type":9,"tag":26,"props":1534,"children":1535},{},[1536],{"type":9,"tag":30,"props":1537,"children":1539},{"className":32,"code":1538,"language":34,"meta":22,"style":22},"\u003Cscript lang=\"ts\" setup>\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\n\nconst countryOptions = ['CN', 'US', 'JP'] as const\ntype CountryCode = typeof countryOptions[number]\n\nconst cityItemsByCountry: Record\u003CCountryCode, string[]> = {\n  CN: ['北京', '上海', '广州'],\n  US: ['New York', 'San Francisco', 'Seattle'],\n  JP: ['Tokyo', 'Osaka', 'Kyoto']\n}\n\nconst schema = afz.object({\n  country: afz.enum(countryOptions).default('CN').meta({ label: '国家' }),\n  city: afz.enum([], {\n    type: 'enum',\n    controlProps: ({ state }) => ({\n      items: cityItemsByCountry[(state.country as CountryCode | undefined) ?? 'CN']\n    })\n  }).meta({ label: '城市', hint: '选项随国家变化，切换国家后会清空已选城市' })\n})\n\nconst state = reactive\u003CPartial\u003Cz.output\u003Ctypeof schema>>>({})\n\nwatch(() => state.country, () => {\n  state.city = undefined\n})\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm v-model=\"state\" :schema=\"schema\" \u002F>\n\u003C\u002Ftemplate>\n\n",[1540],{"type":9,"tag":37,"props":1541,"children":1542},{"__ignoreMap":22},[1543,1574,1597,1604,1635,1642,1701,1727,1734,1786,1822,1857,1893,1900,1907,1934,1985,2002,2019,2049,2093,2100,2136,2143,2150,2209,2216,2246,2263,2270,2285,2292,2307,2366],{"type":9,"tag":41,"props":1544,"children":1545},{"class":43,"line":44},[1546,1550,1554,1558,1562,1566,1570],{"type":9,"tag":41,"props":1547,"children":1548},{"style":48},[1549],{"type":14,"value":51},{"type":9,"tag":41,"props":1551,"children":1552},{"style":54},[1553],{"type":14,"value":57},{"type":9,"tag":41,"props":1555,"children":1556},{"style":60},[1557],{"type":14,"value":63},{"type":9,"tag":41,"props":1559,"children":1560},{"style":48},[1561],{"type":14,"value":68},{"type":9,"tag":41,"props":1563,"children":1564},{"style":71},[1565],{"type":14,"value":74},{"type":9,"tag":41,"props":1567,"children":1568},{"style":60},[1569],{"type":14,"value":79},{"type":9,"tag":41,"props":1571,"children":1572},{"style":48},[1573],{"type":14,"value":84},{"type":9,"tag":41,"props":1575,"children":1576},{"class":43,"line":87},[1577,1581,1585,1589,1593],{"type":9,"tag":41,"props":1578,"children":1579},{"style":91},[1580],{"type":14,"value":94},{"type":9,"tag":41,"props":1582,"children":1583},{"style":91},[1584],{"type":14,"value":99},{"type":9,"tag":41,"props":1586,"children":1587},{"style":48},[1588],{"type":14,"value":131},{"type":9,"tag":41,"props":1590,"children":1591},{"style":91},[1592],{"type":14,"value":109},{"type":9,"tag":41,"props":1594,"children":1595},{"style":71},[1596],{"type":14,"value":140},{"type":9,"tag":41,"props":1598,"children":1599},{"class":43,"line":117},[1600],{"type":9,"tag":41,"props":1601,"children":1602},{"emptyLinePlaceholder":173},[1603],{"type":14,"value":176},{"type":9,"tag":41,"props":1605,"children":1606},{"class":43,"line":143},[1607,1611,1615,1619,1623,1627,1631],{"type":9,"tag":41,"props":1608,"children":1609},{"style":91},[1610],{"type":14,"value":185},{"type":9,"tag":41,"props":1612,"children":1613},{"style":48},[1614],{"type":14,"value":190},{"type":9,"tag":41,"props":1616,"children":1617},{"style":193},[1618],{"type":14,"value":196},{"type":9,"tag":41,"props":1620,"children":1621},{"style":48},[1622],{"type":14,"value":201},{"type":9,"tag":41,"props":1624,"children":1625},{"style":91},[1626],{"type":14,"value":68},{"type":9,"tag":41,"props":1628,"children":1629},{"style":60},[1630],{"type":14,"value":210},{"type":9,"tag":41,"props":1632,"children":1633},{"style":48},[1634],{"type":14,"value":215},{"type":9,"tag":41,"props":1636,"children":1637},{"class":43,"line":169},[1638],{"type":9,"tag":41,"props":1639,"children":1640},{"emptyLinePlaceholder":173},[1641],{"type":14,"value":176},{"type":9,"tag":41,"props":1643,"children":1644},{"class":43,"line":179},[1645,1649,1654,1658,1663,1668,1672,1677,1681,1686,1691,1696],{"type":9,"tag":41,"props":1646,"children":1647},{"style":91},[1648],{"type":14,"value":185},{"type":9,"tag":41,"props":1650,"children":1651},{"style":193},[1652],{"type":14,"value":1653}," countryOptions",{"type":9,"tag":41,"props":1655,"children":1656},{"style":91},[1657],{"type":14,"value":233},{"type":9,"tag":41,"props":1659,"children":1660},{"style":48},[1661],{"type":14,"value":1662}," [",{"type":9,"tag":41,"props":1664,"children":1665},{"style":71},[1666],{"type":14,"value":1667},"'CN'",{"type":9,"tag":41,"props":1669,"children":1670},{"style":48},[1671],{"type":14,"value":320},{"type":9,"tag":41,"props":1673,"children":1674},{"style":71},[1675],{"type":14,"value":1676},"'US'",{"type":9,"tag":41,"props":1678,"children":1679},{"style":48},[1680],{"type":14,"value":320},{"type":9,"tag":41,"props":1682,"children":1683},{"style":71},[1684],{"type":14,"value":1685},"'JP'",{"type":9,"tag":41,"props":1687,"children":1688},{"style":48},[1689],{"type":14,"value":1690},"] ",{"type":9,"tag":41,"props":1692,"children":1693},{"style":91},[1694],{"type":14,"value":1695},"as",{"type":9,"tag":41,"props":1697,"children":1698},{"style":91},[1699],{"type":14,"value":1700}," const\n",{"type":9,"tag":41,"props":1702,"children":1703},{"class":43,"line":218},[1704,1708,1713,1717,1722],{"type":9,"tag":41,"props":1705,"children":1706},{"style":91},[1707],{"type":14,"value":1096},{"type":9,"tag":41,"props":1709,"children":1710},{"style":60},[1711],{"type":14,"value":1712}," CountryCode",{"type":9,"tag":41,"props":1714,"children":1715},{"style":91},[1716],{"type":14,"value":233},{"type":9,"tag":41,"props":1718,"children":1719},{"style":91},[1720],{"type":14,"value":1721}," typeof",{"type":9,"tag":41,"props":1723,"children":1724},{"style":48},[1725],{"type":14,"value":1726}," countryOptions[number]\n",{"type":9,"tag":41,"props":1728,"children":1729},{"class":43,"line":245},[1730],{"type":9,"tag":41,"props":1731,"children":1732},{"emptyLinePlaceholder":173},[1733],{"type":14,"value":176},{"type":9,"tag":41,"props":1735,"children":1736},{"class":43,"line":253},[1737,1741,1746,1750,1755,1759,1764,1768,1772,1777,1781],{"type":9,"tag":41,"props":1738,"children":1739},{"style":91},[1740],{"type":14,"value":185},{"type":9,"tag":41,"props":1742,"children":1743},{"style":193},[1744],{"type":14,"value":1745}," cityItemsByCountry",{"type":9,"tag":41,"props":1747,"children":1748},{"style":91},[1749],{"type":14,"value":625},{"type":9,"tag":41,"props":1751,"children":1752},{"style":60},[1753],{"type":14,"value":1754}," Record",{"type":9,"tag":41,"props":1756,"children":1757},{"style":48},[1758],{"type":14,"value":51},{"type":9,"tag":41,"props":1760,"children":1761},{"style":60},[1762],{"type":14,"value":1763},"CountryCode",{"type":9,"tag":41,"props":1765,"children":1766},{"style":48},[1767],{"type":14,"value":320},{"type":9,"tag":41,"props":1769,"children":1770},{"style":193},[1771],{"type":14,"value":425},{"type":9,"tag":41,"props":1773,"children":1774},{"style":48},[1775],{"type":14,"value":1776},"[]> ",{"type":9,"tag":41,"props":1778,"children":1779},{"style":91},[1780],{"type":14,"value":68},{"type":9,"tag":41,"props":1782,"children":1783},{"style":48},[1784],{"type":14,"value":1785}," {\n",{"type":9,"tag":41,"props":1787,"children":1788},{"class":43,"line":285},[1789,1794,1799,1803,1808,1812,1817],{"type":9,"tag":41,"props":1790,"children":1791},{"style":48},[1792],{"type":14,"value":1793},"  CN: [",{"type":9,"tag":41,"props":1795,"children":1796},{"style":71},[1797],{"type":14,"value":1798},"'北京'",{"type":9,"tag":41,"props":1800,"children":1801},{"style":48},[1802],{"type":14,"value":320},{"type":9,"tag":41,"props":1804,"children":1805},{"style":71},[1806],{"type":14,"value":1807},"'上海'",{"type":9,"tag":41,"props":1809,"children":1810},{"style":48},[1811],{"type":14,"value":320},{"type":9,"tag":41,"props":1813,"children":1814},{"style":71},[1815],{"type":14,"value":1816},"'广州'",{"type":9,"tag":41,"props":1818,"children":1819},{"style":48},[1820],{"type":14,"value":1821},"],\n",{"type":9,"tag":41,"props":1823,"children":1824},{"class":43,"line":294},[1825,1830,1835,1839,1844,1848,1853],{"type":9,"tag":41,"props":1826,"children":1827},{"style":48},[1828],{"type":14,"value":1829},"  US: [",{"type":9,"tag":41,"props":1831,"children":1832},{"style":71},[1833],{"type":14,"value":1834},"'New York'",{"type":9,"tag":41,"props":1836,"children":1837},{"style":48},[1838],{"type":14,"value":320},{"type":9,"tag":41,"props":1840,"children":1841},{"style":71},[1842],{"type":14,"value":1843},"'San Francisco'",{"type":9,"tag":41,"props":1845,"children":1846},{"style":48},[1847],{"type":14,"value":320},{"type":9,"tag":41,"props":1849,"children":1850},{"style":71},[1851],{"type":14,"value":1852},"'Seattle'",{"type":9,"tag":41,"props":1854,"children":1855},{"style":48},[1856],{"type":14,"value":1821},{"type":9,"tag":41,"props":1858,"children":1859},{"class":43,"line":333},[1860,1865,1870,1874,1879,1883,1888],{"type":9,"tag":41,"props":1861,"children":1862},{"style":48},[1863],{"type":14,"value":1864},"  JP: [",{"type":9,"tag":41,"props":1866,"children":1867},{"style":71},[1868],{"type":14,"value":1869},"'Tokyo'",{"type":9,"tag":41,"props":1871,"children":1872},{"style":48},[1873],{"type":14,"value":320},{"type":9,"tag":41,"props":1875,"children":1876},{"style":71},[1877],{"type":14,"value":1878},"'Osaka'",{"type":9,"tag":41,"props":1880,"children":1881},{"style":48},[1882],{"type":14,"value":320},{"type":9,"tag":41,"props":1884,"children":1885},{"style":71},[1886],{"type":14,"value":1887},"'Kyoto'",{"type":9,"tag":41,"props":1889,"children":1890},{"style":48},[1891],{"type":14,"value":1892},"]\n",{"type":9,"tag":41,"props":1894,"children":1895},{"class":43,"line":360},[1896],{"type":9,"tag":41,"props":1897,"children":1898},{"style":48},[1899],{"type":14,"value":1363},{"type":9,"tag":41,"props":1901,"children":1902},{"class":43,"line":398},[1903],{"type":9,"tag":41,"props":1904,"children":1905},{"emptyLinePlaceholder":173},[1906],{"type":14,"value":176},{"type":9,"tag":41,"props":1908,"children":1909},{"class":43,"line":406},[1910,1914,1918,1922,1926,1930],{"type":9,"tag":41,"props":1911,"children":1912},{"style":91},[1913],{"type":14,"value":185},{"type":9,"tag":41,"props":1915,"children":1916},{"style":193},[1917],{"type":14,"value":263},{"type":9,"tag":41,"props":1919,"children":1920},{"style":91},[1921],{"type":14,"value":233},{"type":9,"tag":41,"props":1923,"children":1924},{"style":48},[1925],{"type":14,"value":272},{"type":9,"tag":41,"props":1927,"children":1928},{"style":60},[1929],{"type":14,"value":277},{"type":9,"tag":41,"props":1931,"children":1932},{"style":48},[1933],{"type":14,"value":282},{"type":9,"tag":41,"props":1935,"children":1936},{"class":43,"line":415},[1937,1942,1946,1951,1955,1959,1963,1968,1972,1976,1981],{"type":9,"tag":41,"props":1938,"children":1939},{"style":48},[1940],{"type":14,"value":1941},"  country: afz.",{"type":9,"tag":41,"props":1943,"children":1944},{"style":60},[1945],{"type":14,"value":305},{"type":9,"tag":41,"props":1947,"children":1948},{"style":48},[1949],{"type":14,"value":1950},"(countryOptions).",{"type":9,"tag":41,"props":1952,"children":1953},{"style":60},[1954],{"type":14,"value":343},{"type":9,"tag":41,"props":1956,"children":1957},{"style":48},[1958],{"type":14,"value":348},{"type":9,"tag":41,"props":1960,"children":1961},{"style":71},[1962],{"type":14,"value":1667},{"type":9,"tag":41,"props":1964,"children":1965},{"style":48},[1966],{"type":14,"value":1967},").",{"type":9,"tag":41,"props":1969,"children":1970},{"style":60},[1971],{"type":14,"value":370},{"type":9,"tag":41,"props":1973,"children":1974},{"style":48},[1975],{"type":14,"value":375},{"type":9,"tag":41,"props":1977,"children":1978},{"style":71},[1979],{"type":14,"value":1980},"'国家'",{"type":9,"tag":41,"props":1982,"children":1983},{"style":48},[1984],{"type":14,"value":395},{"type":9,"tag":41,"props":1986,"children":1987},{"class":43,"line":443},[1988,1993,1997],{"type":9,"tag":41,"props":1989,"children":1990},{"style":48},[1991],{"type":14,"value":1992},"  city: afz.",{"type":9,"tag":41,"props":1994,"children":1995},{"style":60},[1996],{"type":14,"value":305},{"type":9,"tag":41,"props":1998,"children":1999},{"style":48},[2000],{"type":14,"value":2001},"([], {\n",{"type":9,"tag":41,"props":2003,"children":2004},{"class":43,"line":478},[2005,2010,2015],{"type":9,"tag":41,"props":2006,"children":2007},{"style":48},[2008],{"type":14,"value":2009},"    type: ",{"type":9,"tag":41,"props":2011,"children":2012},{"style":71},[2013],{"type":14,"value":2014},"'enum'",{"type":9,"tag":41,"props":2016,"children":2017},{"style":48},[2018],{"type":14,"value":577},{"type":9,"tag":41,"props":2020,"children":2021},{"class":43,"line":503},[2022,2027,2031,2035,2040,2044],{"type":9,"tag":41,"props":2023,"children":2024},{"style":60},[2025],{"type":14,"value":2026},"    controlProps",{"type":9,"tag":41,"props":2028,"children":2029},{"style":48},[2030],{"type":14,"value":609},{"type":9,"tag":41,"props":2032,"children":2033},{"style":612},[2034],{"type":14,"value":615},{"type":9,"tag":41,"props":2036,"children":2037},{"style":48},[2038],{"type":14,"value":2039}," }) ",{"type":9,"tag":41,"props":2041,"children":2042},{"style":91},[2043],{"type":14,"value":640},{"type":9,"tag":41,"props":2045,"children":2046},{"style":48},[2047],{"type":14,"value":2048}," ({\n",{"type":9,"tag":41,"props":2050,"children":2051},{"class":43,"line":511},[2052,2057,2061,2065,2070,2075,2079,2084,2089],{"type":9,"tag":41,"props":2053,"children":2054},{"style":48},[2055],{"type":14,"value":2056},"      items: cityItemsByCountry[(state.country ",{"type":9,"tag":41,"props":2058,"children":2059},{"style":91},[2060],{"type":14,"value":1695},{"type":9,"tag":41,"props":2062,"children":2063},{"style":60},[2064],{"type":14,"value":1712},{"type":9,"tag":41,"props":2066,"children":2067},{"style":91},[2068],{"type":14,"value":2069}," |",{"type":9,"tag":41,"props":2071,"children":2072},{"style":193},[2073],{"type":14,"value":2074}," undefined",{"type":9,"tag":41,"props":2076,"children":2077},{"style":48},[2078],{"type":14,"value":635},{"type":9,"tag":41,"props":2080,"children":2081},{"style":91},[2082],{"type":14,"value":2083},"??",{"type":9,"tag":41,"props":2085,"children":2086},{"style":71},[2087],{"type":14,"value":2088}," 'CN'",{"type":9,"tag":41,"props":2090,"children":2091},{"style":48},[2092],{"type":14,"value":1892},{"type":9,"tag":41,"props":2094,"children":2095},{"class":43,"line":520},[2096],{"type":9,"tag":41,"props":2097,"children":2098},{"style":48},[2099],{"type":14,"value":1070},{"type":9,"tag":41,"props":2101,"children":2102},{"class":43,"line":545},[2103,2108,2112,2116,2121,2126,2131],{"type":9,"tag":41,"props":2104,"children":2105},{"style":48},[2106],{"type":14,"value":2107},"  }).",{"type":9,"tag":41,"props":2109,"children":2110},{"style":60},[2111],{"type":14,"value":370},{"type":9,"tag":41,"props":2113,"children":2114},{"style":48},[2115],{"type":14,"value":375},{"type":9,"tag":41,"props":2117,"children":2118},{"style":71},[2119],{"type":14,"value":2120},"'城市'",{"type":9,"tag":41,"props":2122,"children":2123},{"style":48},[2124],{"type":14,"value":2125},", hint: ",{"type":9,"tag":41,"props":2127,"children":2128},{"style":71},[2129],{"type":14,"value":2130},"'选项随国家变化，切换国家后会清空已选城市'",{"type":9,"tag":41,"props":2132,"children":2133},{"style":48},[2134],{"type":14,"value":2135}," })\n",{"type":9,"tag":41,"props":2137,"children":2138},{"class":43,"line":561},[2139],{"type":9,"tag":41,"props":2140,"children":2141},{"style":48},[2142],{"type":14,"value":1079},{"type":9,"tag":41,"props":2144,"children":2145},{"class":43,"line":580},[2146],{"type":9,"tag":41,"props":2147,"children":2148},{"emptyLinePlaceholder":173},[2149],{"type":14,"value":176},{"type":9,"tag":41,"props":2151,"children":2152},{"class":43,"line":598},[2153,2157,2162,2166,2171,2175,2179,2183,2188,2192,2196,2200,2204],{"type":9,"tag":41,"props":2154,"children":2155},{"style":91},[2156],{"type":14,"value":185},{"type":9,"tag":41,"props":2158,"children":2159},{"style":193},[2160],{"type":14,"value":2161}," state",{"type":9,"tag":41,"props":2163,"children":2164},{"style":91},[2165],{"type":14,"value":233},{"type":9,"tag":41,"props":2167,"children":2168},{"style":60},[2169],{"type":14,"value":2170}," reactive",{"type":9,"tag":41,"props":2172,"children":2173},{"style":48},[2174],{"type":14,"value":51},{"type":9,"tag":41,"props":2176,"children":2177},{"style":60},[2178],{"type":14,"value":1173},{"type":9,"tag":41,"props":2180,"children":2181},{"style":48},[2182],{"type":14,"value":51},{"type":9,"tag":41,"props":2184,"children":2185},{"style":60},[2186],{"type":14,"value":2187},"z",{"type":9,"tag":41,"props":2189,"children":2190},{"style":48},[2191],{"type":14,"value":1115},{"type":9,"tag":41,"props":2193,"children":2194},{"style":60},[2195],{"type":14,"value":1120},{"type":9,"tag":41,"props":2197,"children":2198},{"style":48},[2199],{"type":14,"value":51},{"type":9,"tag":41,"props":2201,"children":2202},{"style":91},[2203],{"type":14,"value":1129},{"type":9,"tag":41,"props":2205,"children":2206},{"style":48},[2207],{"type":14,"value":2208}," schema>>>({})\n",{"type":9,"tag":41,"props":2210,"children":2211},{"class":43,"line":658},[2212],{"type":9,"tag":41,"props":2213,"children":2214},{"emptyLinePlaceholder":173},[2215],{"type":14,"value":176},{"type":9,"tag":41,"props":2217,"children":2218},{"class":43,"line":667},[2219,2224,2229,2233,2238,2242],{"type":9,"tag":41,"props":2220,"children":2221},{"style":60},[2222],{"type":14,"value":2223},"watch",{"type":9,"tag":41,"props":2225,"children":2226},{"style":48},[2227],{"type":14,"value":2228},"(() ",{"type":9,"tag":41,"props":2230,"children":2231},{"style":91},[2232],{"type":14,"value":640},{"type":9,"tag":41,"props":2234,"children":2235},{"style":48},[2236],{"type":14,"value":2237}," state.country, () ",{"type":9,"tag":41,"props":2239,"children":2240},{"style":91},[2241],{"type":14,"value":640},{"type":9,"tag":41,"props":2243,"children":2244},{"style":48},[2245],{"type":14,"value":1785},{"type":9,"tag":41,"props":2247,"children":2248},{"class":43,"line":675},[2249,2254,2258],{"type":9,"tag":41,"props":2250,"children":2251},{"style":48},[2252],{"type":14,"value":2253},"  state.city ",{"type":9,"tag":41,"props":2255,"children":2256},{"style":91},[2257],{"type":14,"value":68},{"type":9,"tag":41,"props":2259,"children":2260},{"style":193},[2261],{"type":14,"value":2262}," undefined\n",{"type":9,"tag":41,"props":2264,"children":2265},{"class":43,"line":684},[2266],{"type":9,"tag":41,"props":2267,"children":2268},{"style":48},[2269],{"type":14,"value":1079},{"type":9,"tag":41,"props":2271,"children":2272},{"class":43,"line":709},[2273,2277,2281],{"type":9,"tag":41,"props":2274,"children":2275},{"style":48},[2276],{"type":14,"value":1372},{"type":9,"tag":41,"props":2278,"children":2279},{"style":54},[2280],{"type":14,"value":57},{"type":9,"tag":41,"props":2282,"children":2283},{"style":48},[2284],{"type":14,"value":84},{"type":9,"tag":41,"props":2286,"children":2287},{"class":43,"line":725},[2288],{"type":9,"tag":41,"props":2289,"children":2290},{"emptyLinePlaceholder":173},[2291],{"type":14,"value":176},{"type":9,"tag":41,"props":2293,"children":2294},{"class":43,"line":742},[2295,2299,2303],{"type":9,"tag":41,"props":2296,"children":2297},{"style":48},[2298],{"type":14,"value":51},{"type":9,"tag":41,"props":2300,"children":2301},{"style":54},[2302],{"type":14,"value":1401},{"type":9,"tag":41,"props":2304,"children":2305},{"style":48},[2306],{"type":14,"value":84},{"type":9,"tag":41,"props":2308,"children":2309},{"class":43,"line":759},[2310,2314,2318,2322,2326,2330,2334,2338,2342,2346,2350,2354,2358,2362],{"type":9,"tag":41,"props":2311,"children":2312},{"style":48},[2313],{"type":14,"value":1414},{"type":9,"tag":41,"props":2315,"children":2316},{"style":54},[2317],{"type":14,"value":1419},{"type":9,"tag":41,"props":2319,"children":2320},{"style":60},[2321],{"type":14,"value":1424},{"type":9,"tag":41,"props":2323,"children":2324},{"style":48},[2325],{"type":14,"value":68},{"type":9,"tag":41,"props":2327,"children":2328},{"style":71},[2329],{"type":14,"value":1433},{"type":9,"tag":41,"props":2331,"children":2332},{"style":48},[2333],{"type":14,"value":615},{"type":9,"tag":41,"props":2335,"children":2336},{"style":71},[2337],{"type":14,"value":1433},{"type":9,"tag":41,"props":2339,"children":2340},{"style":48},[2341],{"type":14,"value":1447},{"type":9,"tag":41,"props":2343,"children":2344},{"style":60},[2345],{"type":14,"value":1452},{"type":9,"tag":41,"props":2347,"children":2348},{"style":48},[2349],{"type":14,"value":68},{"type":9,"tag":41,"props":2351,"children":2352},{"style":71},[2353],{"type":14,"value":1433},{"type":9,"tag":41,"props":2355,"children":2356},{"style":48},[2357],{"type":14,"value":1452},{"type":9,"tag":41,"props":2359,"children":2360},{"style":71},[2361],{"type":14,"value":1433},{"type":9,"tag":41,"props":2363,"children":2364},{"style":48},[2365],{"type":14,"value":1500},{"type":9,"tag":41,"props":2367,"children":2368},{"class":43,"line":807},[2369,2373,2377],{"type":9,"tag":41,"props":2370,"children":2371},{"style":48},[2372],{"type":14,"value":1372},{"type":9,"tag":41,"props":2374,"children":2375},{"style":54},[2376],{"type":14,"value":1401},{"type":9,"tag":41,"props":2378,"children":2379},{"style":48},[2380],{"type":14,"value":84},{"type":9,"tag":1518,"props":2382,"children":2383},{},[2384],{"type":14,"value":1522},{"title":22,"searchDepth":87,"depth":87,"links":2386},[],{"code":2388,"filePath":2389,"pascalName":2390},"\u003Cscript setup lang=\"ts\">\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  name: afz.string().min(2).meta({ label: '姓名' })\n})\nconst state = reactive\u003CPartial\u003Cz.output\u003Ctypeof schema>>>({})\n\nasync function onSubmit() {\n  await new Promise(r => setTimeout(r, 1500))\n  toast.add({ title: '提交成功', description: 'loadingAuto 自动维护按钮 loading', color: 'success' })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm v-model=\"state\" :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Fsubmit\u002FAutoFormSubmitAutoExample.vue","AutoFormSubmitAutoExample",{"data":2392,"body":2393,"toc":2930},{"title":22,"description":22},{"type":6,"children":2394},[2395,2926],{"type":9,"tag":30,"props":2396,"children":2398},{"className":32,"code":2397,"language":34,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  name: afz.string().min(2).meta({ label: '姓名' })\n})\nconst state = reactive\u003CPartial\u003Cz.output\u003Ctypeof schema>>>({})\n\nasync function onSubmit() {\n  await new Promise(r => setTimeout(r, 1500))\n  toast.add({ title: '提交成功', description: 'loadingAuto 自动维护按钮 loading', color: 'success' })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm v-model=\"state\" :schema=\"schema\" @submit=\"onSubmit\" \u002F>\n\u003C\u002Ftemplate>\n\n",[2399],{"type":9,"tag":37,"props":2400,"children":2401},{"__ignoreMap":22},[2402,2433,2456,2463,2494,2517,2524,2551,2601,2608,2663,2670,2690,2742,2784,2791,2806,2813,2828,2911],{"type":9,"tag":41,"props":2403,"children":2404},{"class":43,"line":44},[2405,2409,2413,2417,2421,2425,2429],{"type":9,"tag":41,"props":2406,"children":2407},{"style":48},[2408],{"type":14,"value":51},{"type":9,"tag":41,"props":2410,"children":2411},{"style":54},[2412],{"type":14,"value":57},{"type":9,"tag":41,"props":2414,"children":2415},{"style":60},[2416],{"type":14,"value":79},{"type":9,"tag":41,"props":2418,"children":2419},{"style":60},[2420],{"type":14,"value":63},{"type":9,"tag":41,"props":2422,"children":2423},{"style":48},[2424],{"type":14,"value":68},{"type":9,"tag":41,"props":2426,"children":2427},{"style":71},[2428],{"type":14,"value":74},{"type":9,"tag":41,"props":2430,"children":2431},{"style":48},[2432],{"type":14,"value":84},{"type":9,"tag":41,"props":2434,"children":2435},{"class":43,"line":87},[2436,2440,2444,2448,2452],{"type":9,"tag":41,"props":2437,"children":2438},{"style":91},[2439],{"type":14,"value":94},{"type":9,"tag":41,"props":2441,"children":2442},{"style":91},[2443],{"type":14,"value":99},{"type":9,"tag":41,"props":2445,"children":2446},{"style":48},[2447],{"type":14,"value":131},{"type":9,"tag":41,"props":2449,"children":2450},{"style":91},[2451],{"type":14,"value":109},{"type":9,"tag":41,"props":2453,"children":2454},{"style":71},[2455],{"type":14,"value":140},{"type":9,"tag":41,"props":2457,"children":2458},{"class":43,"line":117},[2459],{"type":9,"tag":41,"props":2460,"children":2461},{"emptyLinePlaceholder":173},[2462],{"type":14,"value":176},{"type":9,"tag":41,"props":2464,"children":2465},{"class":43,"line":143},[2466,2470,2474,2478,2482,2486,2490],{"type":9,"tag":41,"props":2467,"children":2468},{"style":91},[2469],{"type":14,"value":185},{"type":9,"tag":41,"props":2471,"children":2472},{"style":48},[2473],{"type":14,"value":190},{"type":9,"tag":41,"props":2475,"children":2476},{"style":193},[2477],{"type":14,"value":196},{"type":9,"tag":41,"props":2479,"children":2480},{"style":48},[2481],{"type":14,"value":201},{"type":9,"tag":41,"props":2483,"children":2484},{"style":91},[2485],{"type":14,"value":68},{"type":9,"tag":41,"props":2487,"children":2488},{"style":60},[2489],{"type":14,"value":210},{"type":9,"tag":41,"props":2491,"children":2492},{"style":48},[2493],{"type":14,"value":215},{"type":9,"tag":41,"props":2495,"children":2496},{"class":43,"line":169},[2497,2501,2505,2509,2513],{"type":9,"tag":41,"props":2498,"children":2499},{"style":91},[2500],{"type":14,"value":185},{"type":9,"tag":41,"props":2502,"children":2503},{"style":193},[2504],{"type":14,"value":228},{"type":9,"tag":41,"props":2506,"children":2507},{"style":91},[2508],{"type":14,"value":233},{"type":9,"tag":41,"props":2510,"children":2511},{"style":60},[2512],{"type":14,"value":238},{"type":9,"tag":41,"props":2514,"children":2515},{"style":48},[2516],{"type":14,"value":215},{"type":9,"tag":41,"props":2518,"children":2519},{"class":43,"line":179},[2520],{"type":9,"tag":41,"props":2521,"children":2522},{"emptyLinePlaceholder":173},[2523],{"type":14,"value":176},{"type":9,"tag":41,"props":2525,"children":2526},{"class":43,"line":218},[2527,2531,2535,2539,2543,2547],{"type":9,"tag":41,"props":2528,"children":2529},{"style":91},[2530],{"type":14,"value":185},{"type":9,"tag":41,"props":2532,"children":2533},{"style":193},[2534],{"type":14,"value":263},{"type":9,"tag":41,"props":2536,"children":2537},{"style":91},[2538],{"type":14,"value":233},{"type":9,"tag":41,"props":2540,"children":2541},{"style":48},[2542],{"type":14,"value":272},{"type":9,"tag":41,"props":2544,"children":2545},{"style":60},[2546],{"type":14,"value":277},{"type":9,"tag":41,"props":2548,"children":2549},{"style":48},[2550],{"type":14,"value":282},{"type":9,"tag":41,"props":2552,"children":2553},{"class":43,"line":245},[2554,2559,2563,2568,2572,2576,2580,2584,2588,2592,2597],{"type":9,"tag":41,"props":2555,"children":2556},{"style":48},[2557],{"type":14,"value":2558},"  name: afz.",{"type":9,"tag":41,"props":2560,"children":2561},{"style":60},[2562],{"type":14,"value":425},{"type":9,"tag":41,"props":2564,"children":2565},{"style":48},[2566],{"type":14,"value":2567},"().",{"type":9,"tag":41,"props":2569,"children":2570},{"style":60},[2571],{"type":14,"value":453},{"type":9,"tag":41,"props":2573,"children":2574},{"style":48},[2575],{"type":14,"value":348},{"type":9,"tag":41,"props":2577,"children":2578},{"style":193},[2579],{"type":14,"value":1341},{"type":9,"tag":41,"props":2581,"children":2582},{"style":48},[2583],{"type":14,"value":1967},{"type":9,"tag":41,"props":2585,"children":2586},{"style":60},[2587],{"type":14,"value":370},{"type":9,"tag":41,"props":2589,"children":2590},{"style":48},[2591],{"type":14,"value":375},{"type":9,"tag":41,"props":2593,"children":2594},{"style":71},[2595],{"type":14,"value":2596},"'姓名'",{"type":9,"tag":41,"props":2598,"children":2599},{"style":48},[2600],{"type":14,"value":2135},{"type":9,"tag":41,"props":2602,"children":2603},{"class":43,"line":253},[2604],{"type":9,"tag":41,"props":2605,"children":2606},{"style":48},[2607],{"type":14,"value":1079},{"type":9,"tag":41,"props":2609,"children":2610},{"class":43,"line":285},[2611,2615,2619,2623,2627,2631,2635,2639,2643,2647,2651,2655,2659],{"type":9,"tag":41,"props":2612,"children":2613},{"style":91},[2614],{"type":14,"value":185},{"type":9,"tag":41,"props":2616,"children":2617},{"style":193},[2618],{"type":14,"value":2161},{"type":9,"tag":41,"props":2620,"children":2621},{"style":91},[2622],{"type":14,"value":233},{"type":9,"tag":41,"props":2624,"children":2625},{"style":60},[2626],{"type":14,"value":2170},{"type":9,"tag":41,"props":2628,"children":2629},{"style":48},[2630],{"type":14,"value":51},{"type":9,"tag":41,"props":2632,"children":2633},{"style":60},[2634],{"type":14,"value":1173},{"type":9,"tag":41,"props":2636,"children":2637},{"style":48},[2638],{"type":14,"value":51},{"type":9,"tag":41,"props":2640,"children":2641},{"style":60},[2642],{"type":14,"value":2187},{"type":9,"tag":41,"props":2644,"children":2645},{"style":48},[2646],{"type":14,"value":1115},{"type":9,"tag":41,"props":2648,"children":2649},{"style":60},[2650],{"type":14,"value":1120},{"type":9,"tag":41,"props":2652,"children":2653},{"style":48},[2654],{"type":14,"value":51},{"type":9,"tag":41,"props":2656,"children":2657},{"style":91},[2658],{"type":14,"value":1129},{"type":9,"tag":41,"props":2660,"children":2661},{"style":48},[2662],{"type":14,"value":2208},{"type":9,"tag":41,"props":2664,"children":2665},{"class":43,"line":294},[2666],{"type":9,"tag":41,"props":2667,"children":2668},{"emptyLinePlaceholder":173},[2669],{"type":14,"value":176},{"type":9,"tag":41,"props":2671,"children":2672},{"class":43,"line":333},[2673,2677,2681,2685],{"type":9,"tag":41,"props":2674,"children":2675},{"style":91},[2676],{"type":14,"value":1204},{"type":9,"tag":41,"props":2678,"children":2679},{"style":91},[2680],{"type":14,"value":1209},{"type":9,"tag":41,"props":2682,"children":2683},{"style":60},[2684],{"type":14,"value":1214},{"type":9,"tag":41,"props":2686,"children":2687},{"style":48},[2688],{"type":14,"value":2689},"() {\n",{"type":9,"tag":41,"props":2691,"children":2692},{"class":43,"line":360},[2693,2698,2703,2708,2712,2717,2722,2727,2732,2737],{"type":9,"tag":41,"props":2694,"children":2695},{"style":91},[2696],{"type":14,"value":2697},"  await",{"type":9,"tag":41,"props":2699,"children":2700},{"style":91},[2701],{"type":14,"value":2702}," new",{"type":9,"tag":41,"props":2704,"children":2705},{"style":193},[2706],{"type":14,"value":2707}," Promise",{"type":9,"tag":41,"props":2709,"children":2710},{"style":48},[2711],{"type":14,"value":348},{"type":9,"tag":41,"props":2713,"children":2714},{"style":612},[2715],{"type":14,"value":2716},"r",{"type":9,"tag":41,"props":2718,"children":2719},{"style":91},[2720],{"type":14,"value":2721}," =>",{"type":9,"tag":41,"props":2723,"children":2724},{"style":60},[2725],{"type":14,"value":2726}," setTimeout",{"type":9,"tag":41,"props":2728,"children":2729},{"style":48},[2730],{"type":14,"value":2731},"(r, ",{"type":9,"tag":41,"props":2733,"children":2734},{"style":193},[2735],{"type":14,"value":2736},"1500",{"type":9,"tag":41,"props":2738,"children":2739},{"style":48},[2740],{"type":14,"value":2741},"))\n",{"type":9,"tag":41,"props":2743,"children":2744},{"class":43,"line":398},[2745,2749,2753,2758,2762,2766,2771,2776,2780],{"type":9,"tag":41,"props":2746,"children":2747},{"style":48},[2748],{"type":14,"value":1254},{"type":9,"tag":41,"props":2750,"children":2751},{"style":60},[2752],{"type":14,"value":1259},{"type":9,"tag":41,"props":2754,"children":2755},{"style":48},[2756],{"type":14,"value":2757},"({ title: ",{"type":9,"tag":41,"props":2759,"children":2760},{"style":71},[2761],{"type":14,"value":1277},{"type":9,"tag":41,"props":2763,"children":2764},{"style":48},[2765],{"type":14,"value":385},{"type":9,"tag":41,"props":2767,"children":2768},{"style":71},[2769],{"type":14,"value":2770},"'loadingAuto 自动维护按钮 loading'",{"type":9,"tag":41,"props":2772,"children":2773},{"style":48},[2774],{"type":14,"value":2775},", color: ",{"type":9,"tag":41,"props":2777,"children":2778},{"style":71},[2779],{"type":14,"value":1295},{"type":9,"tag":41,"props":2781,"children":2782},{"style":48},[2783],{"type":14,"value":2135},{"type":9,"tag":41,"props":2785,"children":2786},{"class":43,"line":406},[2787],{"type":9,"tag":41,"props":2788,"children":2789},{"style":48},[2790],{"type":14,"value":1363},{"type":9,"tag":41,"props":2792,"children":2793},{"class":43,"line":415},[2794,2798,2802],{"type":9,"tag":41,"props":2795,"children":2796},{"style":48},[2797],{"type":14,"value":1372},{"type":9,"tag":41,"props":2799,"children":2800},{"style":54},[2801],{"type":14,"value":57},{"type":9,"tag":41,"props":2803,"children":2804},{"style":48},[2805],{"type":14,"value":84},{"type":9,"tag":41,"props":2807,"children":2808},{"class":43,"line":443},[2809],{"type":9,"tag":41,"props":2810,"children":2811},{"emptyLinePlaceholder":173},[2812],{"type":14,"value":176},{"type":9,"tag":41,"props":2814,"children":2815},{"class":43,"line":478},[2816,2820,2824],{"type":9,"tag":41,"props":2817,"children":2818},{"style":48},[2819],{"type":14,"value":51},{"type":9,"tag":41,"props":2821,"children":2822},{"style":54},[2823],{"type":14,"value":1401},{"type":9,"tag":41,"props":2825,"children":2826},{"style":48},[2827],{"type":14,"value":84},{"type":9,"tag":41,"props":2829,"children":2830},{"class":43,"line":503},[2831,2835,2839,2843,2847,2851,2855,2859,2863,2867,2871,2875,2879,2883,2887,2891,2895,2899,2903,2907],{"type":9,"tag":41,"props":2832,"children":2833},{"style":48},[2834],{"type":14,"value":1414},{"type":9,"tag":41,"props":2836,"children":2837},{"style":54},[2838],{"type":14,"value":1419},{"type":9,"tag":41,"props":2840,"children":2841},{"style":60},[2842],{"type":14,"value":1424},{"type":9,"tag":41,"props":2844,"children":2845},{"style":48},[2846],{"type":14,"value":68},{"type":9,"tag":41,"props":2848,"children":2849},{"style":71},[2850],{"type":14,"value":1433},{"type":9,"tag":41,"props":2852,"children":2853},{"style":48},[2854],{"type":14,"value":615},{"type":9,"tag":41,"props":2856,"children":2857},{"style":71},[2858],{"type":14,"value":1433},{"type":9,"tag":41,"props":2860,"children":2861},{"style":48},[2862],{"type":14,"value":1447},{"type":9,"tag":41,"props":2864,"children":2865},{"style":60},[2866],{"type":14,"value":1452},{"type":9,"tag":41,"props":2868,"children":2869},{"style":48},[2870],{"type":14,"value":68},{"type":9,"tag":41,"props":2872,"children":2873},{"style":71},[2874],{"type":14,"value":1433},{"type":9,"tag":41,"props":2876,"children":2877},{"style":48},[2878],{"type":14,"value":1452},{"type":9,"tag":41,"props":2880,"children":2881},{"style":71},[2882],{"type":14,"value":1433},{"type":9,"tag":41,"props":2884,"children":2885},{"style":48},[2886],{"type":14,"value":1473},{"type":9,"tag":41,"props":2888,"children":2889},{"style":60},[2890],{"type":14,"value":1478},{"type":9,"tag":41,"props":2892,"children":2893},{"style":48},[2894],{"type":14,"value":68},{"type":9,"tag":41,"props":2896,"children":2897},{"style":71},[2898],{"type":14,"value":1433},{"type":9,"tag":41,"props":2900,"children":2901},{"style":48},[2902],{"type":14,"value":1491},{"type":9,"tag":41,"props":2904,"children":2905},{"style":71},[2906],{"type":14,"value":1433},{"type":9,"tag":41,"props":2908,"children":2909},{"style":48},[2910],{"type":14,"value":1500},{"type":9,"tag":41,"props":2912,"children":2913},{"class":43,"line":511},[2914,2918,2922],{"type":9,"tag":41,"props":2915,"children":2916},{"style":48},[2917],{"type":14,"value":1372},{"type":9,"tag":41,"props":2919,"children":2920},{"style":54},[2921],{"type":14,"value":1401},{"type":9,"tag":41,"props":2923,"children":2924},{"style":48},[2925],{"type":14,"value":84},{"type":9,"tag":1518,"props":2927,"children":2928},{},[2929],{"type":14,"value":1522},{"title":22,"searchDepth":87,"depth":87,"links":2931},[],{"code":2933,"filePath":2934,"pascalName":2935},"\u003Cscript setup lang=\"ts\">\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  name: afz.string().min(2).meta({ label: '姓名（最少 2 个字符）' })\n})\nconst state = reactive\u003CPartial\u003Cz.output\u003Ctypeof schema>>>({})\n\nasync function onSubmit() {\n  try {\n    await new Promise((_, reject) => setTimeout(() => reject(new Error('API 返回 500')), 1000))\n  }\n  catch (e: unknown) {\n    const msg = e instanceof Error ? e.message : '未知错误'\n    toast.add({ title: '提交失败', description: msg, color: 'error' })\n  }\n}\nfunction onError() {\n  toast.add({ title: '校验未通过', description: '请检查字段输入', color: 'warning' })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm v-model=\"state\" :schema=\"schema\" @submit=\"onSubmit\" @error=\"onError\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Fsubmit\u002FAutoFormSubmitErrorExample.vue","AutoFormSubmitErrorExample",{"data":2937,"body":2938,"toc":3711},{"title":22,"description":22},{"type":6,"children":2939},[2940,3707],{"type":9,"tag":30,"props":2941,"children":2943},{"className":32,"code":2942,"language":34,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  name: afz.string().min(2).meta({ label: '姓名（最少 2 个字符）' })\n})\nconst state = reactive\u003CPartial\u003Cz.output\u003Ctypeof schema>>>({})\n\nasync function onSubmit() {\n  try {\n    await new Promise((_, reject) => setTimeout(() => reject(new Error('API 返回 500')), 1000))\n  }\n  catch (e: unknown) {\n    const msg = e instanceof Error ? e.message : '未知错误'\n    toast.add({ title: '提交失败', description: msg, color: 'error' })\n  }\n}\nfunction onError() {\n  toast.add({ title: '校验未通过', description: '请检查字段输入', color: 'warning' })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm v-model=\"state\" :schema=\"schema\" @submit=\"onSubmit\" @error=\"onError\" \u002F>\n\u003C\u002Ftemplate>\n\n",[2944],{"type":9,"tag":37,"props":2945,"children":2946},{"__ignoreMap":22},[2947,2978,3001,3008,3039,3062,3069,3096,3144,3151,3206,3213,3232,3244,3341,3349,3381,3431,3466,3473,3480,3497,3539,3546,3561,3568,3583,3692],{"type":9,"tag":41,"props":2948,"children":2949},{"class":43,"line":44},[2950,2954,2958,2962,2966,2970,2974],{"type":9,"tag":41,"props":2951,"children":2952},{"style":48},[2953],{"type":14,"value":51},{"type":9,"tag":41,"props":2955,"children":2956},{"style":54},[2957],{"type":14,"value":57},{"type":9,"tag":41,"props":2959,"children":2960},{"style":60},[2961],{"type":14,"value":79},{"type":9,"tag":41,"props":2963,"children":2964},{"style":60},[2965],{"type":14,"value":63},{"type":9,"tag":41,"props":2967,"children":2968},{"style":48},[2969],{"type":14,"value":68},{"type":9,"tag":41,"props":2971,"children":2972},{"style":71},[2973],{"type":14,"value":74},{"type":9,"tag":41,"props":2975,"children":2976},{"style":48},[2977],{"type":14,"value":84},{"type":9,"tag":41,"props":2979,"children":2980},{"class":43,"line":87},[2981,2985,2989,2993,2997],{"type":9,"tag":41,"props":2982,"children":2983},{"style":91},[2984],{"type":14,"value":94},{"type":9,"tag":41,"props":2986,"children":2987},{"style":91},[2988],{"type":14,"value":99},{"type":9,"tag":41,"props":2990,"children":2991},{"style":48},[2992],{"type":14,"value":131},{"type":9,"tag":41,"props":2994,"children":2995},{"style":91},[2996],{"type":14,"value":109},{"type":9,"tag":41,"props":2998,"children":2999},{"style":71},[3000],{"type":14,"value":140},{"type":9,"tag":41,"props":3002,"children":3003},{"class":43,"line":117},[3004],{"type":9,"tag":41,"props":3005,"children":3006},{"emptyLinePlaceholder":173},[3007],{"type":14,"value":176},{"type":9,"tag":41,"props":3009,"children":3010},{"class":43,"line":143},[3011,3015,3019,3023,3027,3031,3035],{"type":9,"tag":41,"props":3012,"children":3013},{"style":91},[3014],{"type":14,"value":185},{"type":9,"tag":41,"props":3016,"children":3017},{"style":48},[3018],{"type":14,"value":190},{"type":9,"tag":41,"props":3020,"children":3021},{"style":193},[3022],{"type":14,"value":196},{"type":9,"tag":41,"props":3024,"children":3025},{"style":48},[3026],{"type":14,"value":201},{"type":9,"tag":41,"props":3028,"children":3029},{"style":91},[3030],{"type":14,"value":68},{"type":9,"tag":41,"props":3032,"children":3033},{"style":60},[3034],{"type":14,"value":210},{"type":9,"tag":41,"props":3036,"children":3037},{"style":48},[3038],{"type":14,"value":215},{"type":9,"tag":41,"props":3040,"children":3041},{"class":43,"line":169},[3042,3046,3050,3054,3058],{"type":9,"tag":41,"props":3043,"children":3044},{"style":91},[3045],{"type":14,"value":185},{"type":9,"tag":41,"props":3047,"children":3048},{"style":193},[3049],{"type":14,"value":228},{"type":9,"tag":41,"props":3051,"children":3052},{"style":91},[3053],{"type":14,"value":233},{"type":9,"tag":41,"props":3055,"children":3056},{"style":60},[3057],{"type":14,"value":238},{"type":9,"tag":41,"props":3059,"children":3060},{"style":48},[3061],{"type":14,"value":215},{"type":9,"tag":41,"props":3063,"children":3064},{"class":43,"line":179},[3065],{"type":9,"tag":41,"props":3066,"children":3067},{"emptyLinePlaceholder":173},[3068],{"type":14,"value":176},{"type":9,"tag":41,"props":3070,"children":3071},{"class":43,"line":218},[3072,3076,3080,3084,3088,3092],{"type":9,"tag":41,"props":3073,"children":3074},{"style":91},[3075],{"type":14,"value":185},{"type":9,"tag":41,"props":3077,"children":3078},{"style":193},[3079],{"type":14,"value":263},{"type":9,"tag":41,"props":3081,"children":3082},{"style":91},[3083],{"type":14,"value":233},{"type":9,"tag":41,"props":3085,"children":3086},{"style":48},[3087],{"type":14,"value":272},{"type":9,"tag":41,"props":3089,"children":3090},{"style":60},[3091],{"type":14,"value":277},{"type":9,"tag":41,"props":3093,"children":3094},{"style":48},[3095],{"type":14,"value":282},{"type":9,"tag":41,"props":3097,"children":3098},{"class":43,"line":245},[3099,3103,3107,3111,3115,3119,3123,3127,3131,3135,3140],{"type":9,"tag":41,"props":3100,"children":3101},{"style":48},[3102],{"type":14,"value":2558},{"type":9,"tag":41,"props":3104,"children":3105},{"style":60},[3106],{"type":14,"value":425},{"type":9,"tag":41,"props":3108,"children":3109},{"style":48},[3110],{"type":14,"value":2567},{"type":9,"tag":41,"props":3112,"children":3113},{"style":60},[3114],{"type":14,"value":453},{"type":9,"tag":41,"props":3116,"children":3117},{"style":48},[3118],{"type":14,"value":348},{"type":9,"tag":41,"props":3120,"children":3121},{"style":193},[3122],{"type":14,"value":1341},{"type":9,"tag":41,"props":3124,"children":3125},{"style":48},[3126],{"type":14,"value":1967},{"type":9,"tag":41,"props":3128,"children":3129},{"style":60},[3130],{"type":14,"value":370},{"type":9,"tag":41,"props":3132,"children":3133},{"style":48},[3134],{"type":14,"value":375},{"type":9,"tag":41,"props":3136,"children":3137},{"style":71},[3138],{"type":14,"value":3139},"'姓名（最少 2 个字符）'",{"type":9,"tag":41,"props":3141,"children":3142},{"style":48},[3143],{"type":14,"value":2135},{"type":9,"tag":41,"props":3145,"children":3146},{"class":43,"line":253},[3147],{"type":9,"tag":41,"props":3148,"children":3149},{"style":48},[3150],{"type":14,"value":1079},{"type":9,"tag":41,"props":3152,"children":3153},{"class":43,"line":285},[3154,3158,3162,3166,3170,3174,3178,3182,3186,3190,3194,3198,3202],{"type":9,"tag":41,"props":3155,"children":3156},{"style":91},[3157],{"type":14,"value":185},{"type":9,"tag":41,"props":3159,"children":3160},{"style":193},[3161],{"type":14,"value":2161},{"type":9,"tag":41,"props":3163,"children":3164},{"style":91},[3165],{"type":14,"value":233},{"type":9,"tag":41,"props":3167,"children":3168},{"style":60},[3169],{"type":14,"value":2170},{"type":9,"tag":41,"props":3171,"children":3172},{"style":48},[3173],{"type":14,"value":51},{"type":9,"tag":41,"props":3175,"children":3176},{"style":60},[3177],{"type":14,"value":1173},{"type":9,"tag":41,"props":3179,"children":3180},{"style":48},[3181],{"type":14,"value":51},{"type":9,"tag":41,"props":3183,"children":3184},{"style":60},[3185],{"type":14,"value":2187},{"type":9,"tag":41,"props":3187,"children":3188},{"style":48},[3189],{"type":14,"value":1115},{"type":9,"tag":41,"props":3191,"children":3192},{"style":60},[3193],{"type":14,"value":1120},{"type":9,"tag":41,"props":3195,"children":3196},{"style":48},[3197],{"type":14,"value":51},{"type":9,"tag":41,"props":3199,"children":3200},{"style":91},[3201],{"type":14,"value":1129},{"type":9,"tag":41,"props":3203,"children":3204},{"style":48},[3205],{"type":14,"value":2208},{"type":9,"tag":41,"props":3207,"children":3208},{"class":43,"line":294},[3209],{"type":9,"tag":41,"props":3210,"children":3211},{"emptyLinePlaceholder":173},[3212],{"type":14,"value":176},{"type":9,"tag":41,"props":3214,"children":3215},{"class":43,"line":333},[3216,3220,3224,3228],{"type":9,"tag":41,"props":3217,"children":3218},{"style":91},[3219],{"type":14,"value":1204},{"type":9,"tag":41,"props":3221,"children":3222},{"style":91},[3223],{"type":14,"value":1209},{"type":9,"tag":41,"props":3225,"children":3226},{"style":60},[3227],{"type":14,"value":1214},{"type":9,"tag":41,"props":3229,"children":3230},{"style":48},[3231],{"type":14,"value":2689},{"type":9,"tag":41,"props":3233,"children":3234},{"class":43,"line":360},[3235,3240],{"type":9,"tag":41,"props":3236,"children":3237},{"style":91},[3238],{"type":14,"value":3239},"  try",{"type":9,"tag":41,"props":3241,"children":3242},{"style":48},[3243],{"type":14,"value":1785},{"type":9,"tag":41,"props":3245,"children":3246},{"class":43,"line":398},[3247,3252,3256,3260,3265,3270,3274,3279,3283,3287,3291,3295,3299,3304,3308,3313,3318,3322,3327,3332,3337],{"type":9,"tag":41,"props":3248,"children":3249},{"style":91},[3250],{"type":14,"value":3251},"    await",{"type":9,"tag":41,"props":3253,"children":3254},{"style":91},[3255],{"type":14,"value":2702},{"type":9,"tag":41,"props":3257,"children":3258},{"style":193},[3259],{"type":14,"value":2707},{"type":9,"tag":41,"props":3261,"children":3262},{"style":48},[3263],{"type":14,"value":3264},"((",{"type":9,"tag":41,"props":3266,"children":3267},{"style":612},[3268],{"type":14,"value":3269},"_",{"type":9,"tag":41,"props":3271,"children":3272},{"style":48},[3273],{"type":14,"value":320},{"type":9,"tag":41,"props":3275,"children":3276},{"style":612},[3277],{"type":14,"value":3278},"reject",{"type":9,"tag":41,"props":3280,"children":3281},{"style":48},[3282],{"type":14,"value":635},{"type":9,"tag":41,"props":3284,"children":3285},{"style":91},[3286],{"type":14,"value":640},{"type":9,"tag":41,"props":3288,"children":3289},{"style":60},[3290],{"type":14,"value":2726},{"type":9,"tag":41,"props":3292,"children":3293},{"style":48},[3294],{"type":14,"value":2228},{"type":9,"tag":41,"props":3296,"children":3297},{"style":91},[3298],{"type":14,"value":640},{"type":9,"tag":41,"props":3300,"children":3301},{"style":60},[3302],{"type":14,"value":3303}," reject",{"type":9,"tag":41,"props":3305,"children":3306},{"style":48},[3307],{"type":14,"value":348},{"type":9,"tag":41,"props":3309,"children":3310},{"style":91},[3311],{"type":14,"value":3312},"new",{"type":9,"tag":41,"props":3314,"children":3315},{"style":60},[3316],{"type":14,"value":3317}," Error",{"type":9,"tag":41,"props":3319,"children":3320},{"style":48},[3321],{"type":14,"value":348},{"type":9,"tag":41,"props":3323,"children":3324},{"style":71},[3325],{"type":14,"value":3326},"'API 返回 500'",{"type":9,"tag":41,"props":3328,"children":3329},{"style":48},[3330],{"type":14,"value":3331},")), ",{"type":9,"tag":41,"props":3333,"children":3334},{"style":193},[3335],{"type":14,"value":3336},"1000",{"type":9,"tag":41,"props":3338,"children":3339},{"style":48},[3340],{"type":14,"value":2741},{"type":9,"tag":41,"props":3342,"children":3343},{"class":43,"line":406},[3344],{"type":9,"tag":41,"props":3345,"children":3346},{"style":48},[3347],{"type":14,"value":3348},"  }\n",{"type":9,"tag":41,"props":3350,"children":3351},{"class":43,"line":415},[3352,3357,3362,3367,3371,3376],{"type":9,"tag":41,"props":3353,"children":3354},{"style":91},[3355],{"type":14,"value":3356},"  catch",{"type":9,"tag":41,"props":3358,"children":3359},{"style":48},[3360],{"type":14,"value":3361}," (",{"type":9,"tag":41,"props":3363,"children":3364},{"style":612},[3365],{"type":14,"value":3366},"e",{"type":9,"tag":41,"props":3368,"children":3369},{"style":91},[3370],{"type":14,"value":625},{"type":9,"tag":41,"props":3372,"children":3373},{"style":193},[3374],{"type":14,"value":3375}," unknown",{"type":9,"tag":41,"props":3377,"children":3378},{"style":48},[3379],{"type":14,"value":3380},") {\n",{"type":9,"tag":41,"props":3382,"children":3383},{"class":43,"line":443},[3384,3389,3394,3398,3403,3408,3412,3417,3422,3426],{"type":9,"tag":41,"props":3385,"children":3386},{"style":91},[3387],{"type":14,"value":3388},"    const",{"type":9,"tag":41,"props":3390,"children":3391},{"style":193},[3392],{"type":14,"value":3393}," msg",{"type":9,"tag":41,"props":3395,"children":3396},{"style":91},[3397],{"type":14,"value":233},{"type":9,"tag":41,"props":3399,"children":3400},{"style":48},[3401],{"type":14,"value":3402}," e ",{"type":9,"tag":41,"props":3404,"children":3405},{"style":91},[3406],{"type":14,"value":3407},"instanceof",{"type":9,"tag":41,"props":3409,"children":3410},{"style":60},[3411],{"type":14,"value":3317},{"type":9,"tag":41,"props":3413,"children":3414},{"style":91},[3415],{"type":14,"value":3416}," ?",{"type":9,"tag":41,"props":3418,"children":3419},{"style":48},[3420],{"type":14,"value":3421}," e.message ",{"type":9,"tag":41,"props":3423,"children":3424},{"style":91},[3425],{"type":14,"value":625},{"type":9,"tag":41,"props":3427,"children":3428},{"style":71},[3429],{"type":14,"value":3430}," '未知错误'\n",{"type":9,"tag":41,"props":3432,"children":3433},{"class":43,"line":478},[3434,3439,3443,3447,3452,3457,3462],{"type":9,"tag":41,"props":3435,"children":3436},{"style":48},[3437],{"type":14,"value":3438},"    toast.",{"type":9,"tag":41,"props":3440,"children":3441},{"style":60},[3442],{"type":14,"value":1259},{"type":9,"tag":41,"props":3444,"children":3445},{"style":48},[3446],{"type":14,"value":2757},{"type":9,"tag":41,"props":3448,"children":3449},{"style":71},[3450],{"type":14,"value":3451},"'提交失败'",{"type":9,"tag":41,"props":3453,"children":3454},{"style":48},[3455],{"type":14,"value":3456},", description: msg, color: ",{"type":9,"tag":41,"props":3458,"children":3459},{"style":71},[3460],{"type":14,"value":3461},"'error'",{"type":9,"tag":41,"props":3463,"children":3464},{"style":48},[3465],{"type":14,"value":2135},{"type":9,"tag":41,"props":3467,"children":3468},{"class":43,"line":503},[3469],{"type":9,"tag":41,"props":3470,"children":3471},{"style":48},[3472],{"type":14,"value":3348},{"type":9,"tag":41,"props":3474,"children":3475},{"class":43,"line":511},[3476],{"type":9,"tag":41,"props":3477,"children":3478},{"style":48},[3479],{"type":14,"value":1363},{"type":9,"tag":41,"props":3481,"children":3482},{"class":43,"line":520},[3483,3488,3493],{"type":9,"tag":41,"props":3484,"children":3485},{"style":91},[3486],{"type":14,"value":3487},"function",{"type":9,"tag":41,"props":3489,"children":3490},{"style":60},[3491],{"type":14,"value":3492}," onError",{"type":9,"tag":41,"props":3494,"children":3495},{"style":48},[3496],{"type":14,"value":2689},{"type":9,"tag":41,"props":3498,"children":3499},{"class":43,"line":545},[3500,3504,3508,3512,3517,3521,3526,3530,3535],{"type":9,"tag":41,"props":3501,"children":3502},{"style":48},[3503],{"type":14,"value":1254},{"type":9,"tag":41,"props":3505,"children":3506},{"style":60},[3507],{"type":14,"value":1259},{"type":9,"tag":41,"props":3509,"children":3510},{"style":48},[3511],{"type":14,"value":2757},{"type":9,"tag":41,"props":3513,"children":3514},{"style":71},[3515],{"type":14,"value":3516},"'校验未通过'",{"type":9,"tag":41,"props":3518,"children":3519},{"style":48},[3520],{"type":14,"value":385},{"type":9,"tag":41,"props":3522,"children":3523},{"style":71},[3524],{"type":14,"value":3525},"'请检查字段输入'",{"type":9,"tag":41,"props":3527,"children":3528},{"style":48},[3529],{"type":14,"value":2775},{"type":9,"tag":41,"props":3531,"children":3532},{"style":71},[3533],{"type":14,"value":3534},"'warning'",{"type":9,"tag":41,"props":3536,"children":3537},{"style":48},[3538],{"type":14,"value":2135},{"type":9,"tag":41,"props":3540,"children":3541},{"class":43,"line":561},[3542],{"type":9,"tag":41,"props":3543,"children":3544},{"style":48},[3545],{"type":14,"value":1363},{"type":9,"tag":41,"props":3547,"children":3548},{"class":43,"line":580},[3549,3553,3557],{"type":9,"tag":41,"props":3550,"children":3551},{"style":48},[3552],{"type":14,"value":1372},{"type":9,"tag":41,"props":3554,"children":3555},{"style":54},[3556],{"type":14,"value":57},{"type":9,"tag":41,"props":3558,"children":3559},{"style":48},[3560],{"type":14,"value":84},{"type":9,"tag":41,"props":3562,"children":3563},{"class":43,"line":598},[3564],{"type":9,"tag":41,"props":3565,"children":3566},{"emptyLinePlaceholder":173},[3567],{"type":14,"value":176},{"type":9,"tag":41,"props":3569,"children":3570},{"class":43,"line":658},[3571,3575,3579],{"type":9,"tag":41,"props":3572,"children":3573},{"style":48},[3574],{"type":14,"value":51},{"type":9,"tag":41,"props":3576,"children":3577},{"style":54},[3578],{"type":14,"value":1401},{"type":9,"tag":41,"props":3580,"children":3581},{"style":48},[3582],{"type":14,"value":84},{"type":9,"tag":41,"props":3584,"children":3585},{"class":43,"line":667},[3586,3590,3594,3598,3602,3606,3610,3614,3618,3622,3626,3630,3634,3638,3642,3646,3650,3654,3658,3662,3666,3671,3675,3679,3684,3688],{"type":9,"tag":41,"props":3587,"children":3588},{"style":48},[3589],{"type":14,"value":1414},{"type":9,"tag":41,"props":3591,"children":3592},{"style":54},[3593],{"type":14,"value":1419},{"type":9,"tag":41,"props":3595,"children":3596},{"style":60},[3597],{"type":14,"value":1424},{"type":9,"tag":41,"props":3599,"children":3600},{"style":48},[3601],{"type":14,"value":68},{"type":9,"tag":41,"props":3603,"children":3604},{"style":71},[3605],{"type":14,"value":1433},{"type":9,"tag":41,"props":3607,"children":3608},{"style":48},[3609],{"type":14,"value":615},{"type":9,"tag":41,"props":3611,"children":3612},{"style":71},[3613],{"type":14,"value":1433},{"type":9,"tag":41,"props":3615,"children":3616},{"style":48},[3617],{"type":14,"value":1447},{"type":9,"tag":41,"props":3619,"children":3620},{"style":60},[3621],{"type":14,"value":1452},{"type":9,"tag":41,"props":3623,"children":3624},{"style":48},[3625],{"type":14,"value":68},{"type":9,"tag":41,"props":3627,"children":3628},{"style":71},[3629],{"type":14,"value":1433},{"type":9,"tag":41,"props":3631,"children":3632},{"style":48},[3633],{"type":14,"value":1452},{"type":9,"tag":41,"props":3635,"children":3636},{"style":71},[3637],{"type":14,"value":1433},{"type":9,"tag":41,"props":3639,"children":3640},{"style":48},[3641],{"type":14,"value":1473},{"type":9,"tag":41,"props":3643,"children":3644},{"style":60},[3645],{"type":14,"value":1478},{"type":9,"tag":41,"props":3647,"children":3648},{"style":48},[3649],{"type":14,"value":68},{"type":9,"tag":41,"props":3651,"children":3652},{"style":71},[3653],{"type":14,"value":1433},{"type":9,"tag":41,"props":3655,"children":3656},{"style":48},[3657],{"type":14,"value":1491},{"type":9,"tag":41,"props":3659,"children":3660},{"style":71},[3661],{"type":14,"value":1433},{"type":9,"tag":41,"props":3663,"children":3664},{"style":48},[3665],{"type":14,"value":1473},{"type":9,"tag":41,"props":3667,"children":3668},{"style":60},[3669],{"type":14,"value":3670},"error",{"type":9,"tag":41,"props":3672,"children":3673},{"style":48},[3674],{"type":14,"value":68},{"type":9,"tag":41,"props":3676,"children":3677},{"style":71},[3678],{"type":14,"value":1433},{"type":9,"tag":41,"props":3680,"children":3681},{"style":48},[3682],{"type":14,"value":3683},"onError",{"type":9,"tag":41,"props":3685,"children":3686},{"style":71},[3687],{"type":14,"value":1433},{"type":9,"tag":41,"props":3689,"children":3690},{"style":48},[3691],{"type":14,"value":1500},{"type":9,"tag":41,"props":3693,"children":3694},{"class":43,"line":675},[3695,3699,3703],{"type":9,"tag":41,"props":3696,"children":3697},{"style":48},[3698],{"type":14,"value":1372},{"type":9,"tag":41,"props":3700,"children":3701},{"style":54},[3702],{"type":14,"value":1401},{"type":9,"tag":41,"props":3704,"children":3705},{"style":48},[3706],{"type":14,"value":84},{"type":9,"tag":1518,"props":3708,"children":3709},{},[3710],{"type":14,"value":1522},{"title":22,"searchDepth":87,"depth":87,"links":3712},[],{"code":3714,"filePath":3715,"pascalName":3716},"\u003Cscript setup lang=\"ts\">\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  name: afz.string().min(2).meta({ label: '姓名' })\n})\nconst state = reactive\u003CPartial\u003Cz.output\u003Ctypeof schema>>>({})\nconst loading = ref(false)\n\nasync function onSubmit() {\n  loading.value = true\n  try {\n    await new Promise(r => setTimeout(r, 1500))\n    toast.add({ title: '提交成功（手动 loading）', color: 'success' })\n  }\n  finally {\n    loading.value = false\n  }\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm\n    v-model=\"state\"\n    :schema=\"schema\"\n    :loading-auto=\"false\"\n    :submit-button-props=\"{ loading, label: loading ? '提交中…' : '提交' }\"\n    @submit=\"onSubmit\"\n  \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Fsubmit\u002FAutoFormSubmitManualExample.vue","AutoFormSubmitManualExample",{"data":3718,"body":3719,"toc":4434},{"title":22,"description":22},{"type":6,"children":3720},[3721,4430],{"type":9,"tag":30,"props":3722,"children":3724},{"className":32,"code":3723,"language":34,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  name: afz.string().min(2).meta({ label: '姓名' })\n})\nconst state = reactive\u003CPartial\u003Cz.output\u003Ctypeof schema>>>({})\nconst loading = ref(false)\n\nasync function onSubmit() {\n  loading.value = true\n  try {\n    await new Promise(r => setTimeout(r, 1500))\n    toast.add({ title: '提交成功（手动 loading）', color: 'success' })\n  }\n  finally {\n    loading.value = false\n  }\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMAutoForm\n    v-model=\"state\"\n    :schema=\"schema\"\n    :loading-auto=\"false\"\n    :submit-button-props=\"{ loading, label: loading ? '提交中…' : '提交' }\"\n    @submit=\"onSubmit\"\n  \u002F>\n\u003C\u002Ftemplate>\n\n",[3725],{"type":9,"tag":37,"props":3726,"children":3727},{"__ignoreMap":22},[3728,3759,3782,3789,3820,3843,3850,3877,3924,3931,3986,4018,4025,4044,4061,4072,4115,4147,4154,4166,4183,4190,4197,4212,4219,4234,4246,4271,4299,4327,4379,4407,4415],{"type":9,"tag":41,"props":3729,"children":3730},{"class":43,"line":44},[3731,3735,3739,3743,3747,3751,3755],{"type":9,"tag":41,"props":3732,"children":3733},{"style":48},[3734],{"type":14,"value":51},{"type":9,"tag":41,"props":3736,"children":3737},{"style":54},[3738],{"type":14,"value":57},{"type":9,"tag":41,"props":3740,"children":3741},{"style":60},[3742],{"type":14,"value":79},{"type":9,"tag":41,"props":3744,"children":3745},{"style":60},[3746],{"type":14,"value":63},{"type":9,"tag":41,"props":3748,"children":3749},{"style":48},[3750],{"type":14,"value":68},{"type":9,"tag":41,"props":3752,"children":3753},{"style":71},[3754],{"type":14,"value":74},{"type":9,"tag":41,"props":3756,"children":3757},{"style":48},[3758],{"type":14,"value":84},{"type":9,"tag":41,"props":3760,"children":3761},{"class":43,"line":87},[3762,3766,3770,3774,3778],{"type":9,"tag":41,"props":3763,"children":3764},{"style":91},[3765],{"type":14,"value":94},{"type":9,"tag":41,"props":3767,"children":3768},{"style":91},[3769],{"type":14,"value":99},{"type":9,"tag":41,"props":3771,"children":3772},{"style":48},[3773],{"type":14,"value":131},{"type":9,"tag":41,"props":3775,"children":3776},{"style":91},[3777],{"type":14,"value":109},{"type":9,"tag":41,"props":3779,"children":3780},{"style":71},[3781],{"type":14,"value":140},{"type":9,"tag":41,"props":3783,"children":3784},{"class":43,"line":117},[3785],{"type":9,"tag":41,"props":3786,"children":3787},{"emptyLinePlaceholder":173},[3788],{"type":14,"value":176},{"type":9,"tag":41,"props":3790,"children":3791},{"class":43,"line":143},[3792,3796,3800,3804,3808,3812,3816],{"type":9,"tag":41,"props":3793,"children":3794},{"style":91},[3795],{"type":14,"value":185},{"type":9,"tag":41,"props":3797,"children":3798},{"style":48},[3799],{"type":14,"value":190},{"type":9,"tag":41,"props":3801,"children":3802},{"style":193},[3803],{"type":14,"value":196},{"type":9,"tag":41,"props":3805,"children":3806},{"style":48},[3807],{"type":14,"value":201},{"type":9,"tag":41,"props":3809,"children":3810},{"style":91},[3811],{"type":14,"value":68},{"type":9,"tag":41,"props":3813,"children":3814},{"style":60},[3815],{"type":14,"value":210},{"type":9,"tag":41,"props":3817,"children":3818},{"style":48},[3819],{"type":14,"value":215},{"type":9,"tag":41,"props":3821,"children":3822},{"class":43,"line":169},[3823,3827,3831,3835,3839],{"type":9,"tag":41,"props":3824,"children":3825},{"style":91},[3826],{"type":14,"value":185},{"type":9,"tag":41,"props":3828,"children":3829},{"style":193},[3830],{"type":14,"value":228},{"type":9,"tag":41,"props":3832,"children":3833},{"style":91},[3834],{"type":14,"value":233},{"type":9,"tag":41,"props":3836,"children":3837},{"style":60},[3838],{"type":14,"value":238},{"type":9,"tag":41,"props":3840,"children":3841},{"style":48},[3842],{"type":14,"value":215},{"type":9,"tag":41,"props":3844,"children":3845},{"class":43,"line":179},[3846],{"type":9,"tag":41,"props":3847,"children":3848},{"emptyLinePlaceholder":173},[3849],{"type":14,"value":176},{"type":9,"tag":41,"props":3851,"children":3852},{"class":43,"line":218},[3853,3857,3861,3865,3869,3873],{"type":9,"tag":41,"props":3854,"children":3855},{"style":91},[3856],{"type":14,"value":185},{"type":9,"tag":41,"props":3858,"children":3859},{"style":193},[3860],{"type":14,"value":263},{"type":9,"tag":41,"props":3862,"children":3863},{"style":91},[3864],{"type":14,"value":233},{"type":9,"tag":41,"props":3866,"children":3867},{"style":48},[3868],{"type":14,"value":272},{"type":9,"tag":41,"props":3870,"children":3871},{"style":60},[3872],{"type":14,"value":277},{"type":9,"tag":41,"props":3874,"children":3875},{"style":48},[3876],{"type":14,"value":282},{"type":9,"tag":41,"props":3878,"children":3879},{"class":43,"line":245},[3880,3884,3888,3892,3896,3900,3904,3908,3912,3916,3920],{"type":9,"tag":41,"props":3881,"children":3882},{"style":48},[3883],{"type":14,"value":2558},{"type":9,"tag":41,"props":3885,"children":3886},{"style":60},[3887],{"type":14,"value":425},{"type":9,"tag":41,"props":3889,"children":3890},{"style":48},[3891],{"type":14,"value":2567},{"type":9,"tag":41,"props":3893,"children":3894},{"style":60},[3895],{"type":14,"value":453},{"type":9,"tag":41,"props":3897,"children":3898},{"style":48},[3899],{"type":14,"value":348},{"type":9,"tag":41,"props":3901,"children":3902},{"style":193},[3903],{"type":14,"value":1341},{"type":9,"tag":41,"props":3905,"children":3906},{"style":48},[3907],{"type":14,"value":1967},{"type":9,"tag":41,"props":3909,"children":3910},{"style":60},[3911],{"type":14,"value":370},{"type":9,"tag":41,"props":3913,"children":3914},{"style":48},[3915],{"type":14,"value":375},{"type":9,"tag":41,"props":3917,"children":3918},{"style":71},[3919],{"type":14,"value":2596},{"type":9,"tag":41,"props":3921,"children":3922},{"style":48},[3923],{"type":14,"value":2135},{"type":9,"tag":41,"props":3925,"children":3926},{"class":43,"line":253},[3927],{"type":9,"tag":41,"props":3928,"children":3929},{"style":48},[3930],{"type":14,"value":1079},{"type":9,"tag":41,"props":3932,"children":3933},{"class":43,"line":285},[3934,3938,3942,3946,3950,3954,3958,3962,3966,3970,3974,3978,3982],{"type":9,"tag":41,"props":3935,"children":3936},{"style":91},[3937],{"type":14,"value":185},{"type":9,"tag":41,"props":3939,"children":3940},{"style":193},[3941],{"type":14,"value":2161},{"type":9,"tag":41,"props":3943,"children":3944},{"style":91},[3945],{"type":14,"value":233},{"type":9,"tag":41,"props":3947,"children":3948},{"style":60},[3949],{"type":14,"value":2170},{"type":9,"tag":41,"props":3951,"children":3952},{"style":48},[3953],{"type":14,"value":51},{"type":9,"tag":41,"props":3955,"children":3956},{"style":60},[3957],{"type":14,"value":1173},{"type":9,"tag":41,"props":3959,"children":3960},{"style":48},[3961],{"type":14,"value":51},{"type":9,"tag":41,"props":3963,"children":3964},{"style":60},[3965],{"type":14,"value":2187},{"type":9,"tag":41,"props":3967,"children":3968},{"style":48},[3969],{"type":14,"value":1115},{"type":9,"tag":41,"props":3971,"children":3972},{"style":60},[3973],{"type":14,"value":1120},{"type":9,"tag":41,"props":3975,"children":3976},{"style":48},[3977],{"type":14,"value":51},{"type":9,"tag":41,"props":3979,"children":3980},{"style":91},[3981],{"type":14,"value":1129},{"type":9,"tag":41,"props":3983,"children":3984},{"style":48},[3985],{"type":14,"value":2208},{"type":9,"tag":41,"props":3987,"children":3988},{"class":43,"line":294},[3989,3993,3998,4002,4006,4010,4014],{"type":9,"tag":41,"props":3990,"children":3991},{"style":91},[3992],{"type":14,"value":185},{"type":9,"tag":41,"props":3994,"children":3995},{"style":193},[3996],{"type":14,"value":3997}," loading",{"type":9,"tag":41,"props":3999,"children":4000},{"style":91},[4001],{"type":14,"value":233},{"type":9,"tag":41,"props":4003,"children":4004},{"style":60},[4005],{"type":14,"value":1164},{"type":9,"tag":41,"props":4007,"children":4008},{"style":48},[4009],{"type":14,"value":348},{"type":9,"tag":41,"props":4011,"children":4012},{"style":193},[4013],{"type":14,"value":867},{"type":9,"tag":41,"props":4015,"children":4016},{"style":48},[4017],{"type":14,"value":357},{"type":9,"tag":41,"props":4019,"children":4020},{"class":43,"line":333},[4021],{"type":9,"tag":41,"props":4022,"children":4023},{"emptyLinePlaceholder":173},[4024],{"type":14,"value":176},{"type":9,"tag":41,"props":4026,"children":4027},{"class":43,"line":360},[4028,4032,4036,4040],{"type":9,"tag":41,"props":4029,"children":4030},{"style":91},[4031],{"type":14,"value":1204},{"type":9,"tag":41,"props":4033,"children":4034},{"style":91},[4035],{"type":14,"value":1209},{"type":9,"tag":41,"props":4037,"children":4038},{"style":60},[4039],{"type":14,"value":1214},{"type":9,"tag":41,"props":4041,"children":4042},{"style":48},[4043],{"type":14,"value":2689},{"type":9,"tag":41,"props":4045,"children":4046},{"class":43,"line":398},[4047,4052,4056],{"type":9,"tag":41,"props":4048,"children":4049},{"style":48},[4050],{"type":14,"value":4051},"  loading.value ",{"type":9,"tag":41,"props":4053,"children":4054},{"style":91},[4055],{"type":14,"value":68},{"type":9,"tag":41,"props":4057,"children":4058},{"style":193},[4059],{"type":14,"value":4060}," true\n",{"type":9,"tag":41,"props":4062,"children":4063},{"class":43,"line":406},[4064,4068],{"type":9,"tag":41,"props":4065,"children":4066},{"style":91},[4067],{"type":14,"value":3239},{"type":9,"tag":41,"props":4069,"children":4070},{"style":48},[4071],{"type":14,"value":1785},{"type":9,"tag":41,"props":4073,"children":4074},{"class":43,"line":415},[4075,4079,4083,4087,4091,4095,4099,4103,4107,4111],{"type":9,"tag":41,"props":4076,"children":4077},{"style":91},[4078],{"type":14,"value":3251},{"type":9,"tag":41,"props":4080,"children":4081},{"style":91},[4082],{"type":14,"value":2702},{"type":9,"tag":41,"props":4084,"children":4085},{"style":193},[4086],{"type":14,"value":2707},{"type":9,"tag":41,"props":4088,"children":4089},{"style":48},[4090],{"type":14,"value":348},{"type":9,"tag":41,"props":4092,"children":4093},{"style":612},[4094],{"type":14,"value":2716},{"type":9,"tag":41,"props":4096,"children":4097},{"style":91},[4098],{"type":14,"value":2721},{"type":9,"tag":41,"props":4100,"children":4101},{"style":60},[4102],{"type":14,"value":2726},{"type":9,"tag":41,"props":4104,"children":4105},{"style":48},[4106],{"type":14,"value":2731},{"type":9,"tag":41,"props":4108,"children":4109},{"style":193},[4110],{"type":14,"value":2736},{"type":9,"tag":41,"props":4112,"children":4113},{"style":48},[4114],{"type":14,"value":2741},{"type":9,"tag":41,"props":4116,"children":4117},{"class":43,"line":443},[4118,4122,4126,4130,4135,4139,4143],{"type":9,"tag":41,"props":4119,"children":4120},{"style":48},[4121],{"type":14,"value":3438},{"type":9,"tag":41,"props":4123,"children":4124},{"style":60},[4125],{"type":14,"value":1259},{"type":9,"tag":41,"props":4127,"children":4128},{"style":48},[4129],{"type":14,"value":2757},{"type":9,"tag":41,"props":4131,"children":4132},{"style":71},[4133],{"type":14,"value":4134},"'提交成功（手动 loading）'",{"type":9,"tag":41,"props":4136,"children":4137},{"style":48},[4138],{"type":14,"value":2775},{"type":9,"tag":41,"props":4140,"children":4141},{"style":71},[4142],{"type":14,"value":1295},{"type":9,"tag":41,"props":4144,"children":4145},{"style":48},[4146],{"type":14,"value":2135},{"type":9,"tag":41,"props":4148,"children":4149},{"class":43,"line":478},[4150],{"type":9,"tag":41,"props":4151,"children":4152},{"style":48},[4153],{"type":14,"value":3348},{"type":9,"tag":41,"props":4155,"children":4156},{"class":43,"line":503},[4157,4162],{"type":9,"tag":41,"props":4158,"children":4159},{"style":91},[4160],{"type":14,"value":4161},"  finally",{"type":9,"tag":41,"props":4163,"children":4164},{"style":48},[4165],{"type":14,"value":1785},{"type":9,"tag":41,"props":4167,"children":4168},{"class":43,"line":511},[4169,4174,4178],{"type":9,"tag":41,"props":4170,"children":4171},{"style":48},[4172],{"type":14,"value":4173},"    loading.value ",{"type":9,"tag":41,"props":4175,"children":4176},{"style":91},[4177],{"type":14,"value":68},{"type":9,"tag":41,"props":4179,"children":4180},{"style":193},[4181],{"type":14,"value":4182}," false\n",{"type":9,"tag":41,"props":4184,"children":4185},{"class":43,"line":520},[4186],{"type":9,"tag":41,"props":4187,"children":4188},{"style":48},[4189],{"type":14,"value":3348},{"type":9,"tag":41,"props":4191,"children":4192},{"class":43,"line":545},[4193],{"type":9,"tag":41,"props":4194,"children":4195},{"style":48},[4196],{"type":14,"value":1363},{"type":9,"tag":41,"props":4198,"children":4199},{"class":43,"line":561},[4200,4204,4208],{"type":9,"tag":41,"props":4201,"children":4202},{"style":48},[4203],{"type":14,"value":1372},{"type":9,"tag":41,"props":4205,"children":4206},{"style":54},[4207],{"type":14,"value":57},{"type":9,"tag":41,"props":4209,"children":4210},{"style":48},[4211],{"type":14,"value":84},{"type":9,"tag":41,"props":4213,"children":4214},{"class":43,"line":580},[4215],{"type":9,"tag":41,"props":4216,"children":4217},{"emptyLinePlaceholder":173},[4218],{"type":14,"value":176},{"type":9,"tag":41,"props":4220,"children":4221},{"class":43,"line":598},[4222,4226,4230],{"type":9,"tag":41,"props":4223,"children":4224},{"style":48},[4225],{"type":14,"value":51},{"type":9,"tag":41,"props":4227,"children":4228},{"style":54},[4229],{"type":14,"value":1401},{"type":9,"tag":41,"props":4231,"children":4232},{"style":48},[4233],{"type":14,"value":84},{"type":9,"tag":41,"props":4235,"children":4236},{"class":43,"line":658},[4237,4241],{"type":9,"tag":41,"props":4238,"children":4239},{"style":48},[4240],{"type":14,"value":1414},{"type":9,"tag":41,"props":4242,"children":4243},{"style":54},[4244],{"type":14,"value":4245},"MAutoForm\n",{"type":9,"tag":41,"props":4247,"children":4248},{"class":43,"line":667},[4249,4254,4258,4262,4266],{"type":9,"tag":41,"props":4250,"children":4251},{"style":60},[4252],{"type":14,"value":4253},"    v-model",{"type":9,"tag":41,"props":4255,"children":4256},{"style":48},[4257],{"type":14,"value":68},{"type":9,"tag":41,"props":4259,"children":4260},{"style":71},[4261],{"type":14,"value":1433},{"type":9,"tag":41,"props":4263,"children":4264},{"style":48},[4265],{"type":14,"value":615},{"type":9,"tag":41,"props":4267,"children":4268},{"style":71},[4269],{"type":14,"value":4270},"\"\n",{"type":9,"tag":41,"props":4272,"children":4273},{"class":43,"line":675},[4274,4279,4283,4287,4291,4295],{"type":9,"tag":41,"props":4275,"children":4276},{"style":48},[4277],{"type":14,"value":4278},"    :",{"type":9,"tag":41,"props":4280,"children":4281},{"style":60},[4282],{"type":14,"value":1452},{"type":9,"tag":41,"props":4284,"children":4285},{"style":48},[4286],{"type":14,"value":68},{"type":9,"tag":41,"props":4288,"children":4289},{"style":71},[4290],{"type":14,"value":1433},{"type":9,"tag":41,"props":4292,"children":4293},{"style":48},[4294],{"type":14,"value":1452},{"type":9,"tag":41,"props":4296,"children":4297},{"style":71},[4298],{"type":14,"value":4270},{"type":9,"tag":41,"props":4300,"children":4301},{"class":43,"line":684},[4302,4306,4311,4315,4319,4323],{"type":9,"tag":41,"props":4303,"children":4304},{"style":48},[4305],{"type":14,"value":4278},{"type":9,"tag":41,"props":4307,"children":4308},{"style":60},[4309],{"type":14,"value":4310},"loading-auto",{"type":9,"tag":41,"props":4312,"children":4313},{"style":48},[4314],{"type":14,"value":68},{"type":9,"tag":41,"props":4316,"children":4317},{"style":71},[4318],{"type":14,"value":1433},{"type":9,"tag":41,"props":4320,"children":4321},{"style":193},[4322],{"type":14,"value":867},{"type":9,"tag":41,"props":4324,"children":4325},{"style":71},[4326],{"type":14,"value":4270},{"type":9,"tag":41,"props":4328,"children":4329},{"class":43,"line":709},[4330,4334,4339,4343,4347,4352,4357,4362,4366,4371,4375],{"type":9,"tag":41,"props":4331,"children":4332},{"style":48},[4333],{"type":14,"value":4278},{"type":9,"tag":41,"props":4335,"children":4336},{"style":60},[4337],{"type":14,"value":4338},"submit-button-props",{"type":9,"tag":41,"props":4340,"children":4341},{"style":48},[4342],{"type":14,"value":68},{"type":9,"tag":41,"props":4344,"children":4345},{"style":71},[4346],{"type":14,"value":1433},{"type":9,"tag":41,"props":4348,"children":4349},{"style":48},[4350],{"type":14,"value":4351},"{ loading, label: loading ",{"type":9,"tag":41,"props":4353,"children":4354},{"style":91},[4355],{"type":14,"value":4356},"?",{"type":9,"tag":41,"props":4358,"children":4359},{"style":71},[4360],{"type":14,"value":4361}," '提交中…'",{"type":9,"tag":41,"props":4363,"children":4364},{"style":91},[4365],{"type":14,"value":1447},{"type":9,"tag":41,"props":4367,"children":4368},{"style":71},[4369],{"type":14,"value":4370}," '提交'",{"type":9,"tag":41,"props":4372,"children":4373},{"style":48},[4374],{"type":14,"value":620},{"type":9,"tag":41,"props":4376,"children":4377},{"style":71},[4378],{"type":14,"value":4270},{"type":9,"tag":41,"props":4380,"children":4381},{"class":43,"line":725},[4382,4387,4391,4395,4399,4403],{"type":9,"tag":41,"props":4383,"children":4384},{"style":48},[4385],{"type":14,"value":4386},"    @",{"type":9,"tag":41,"props":4388,"children":4389},{"style":60},[4390],{"type":14,"value":1478},{"type":9,"tag":41,"props":4392,"children":4393},{"style":48},[4394],{"type":14,"value":68},{"type":9,"tag":41,"props":4396,"children":4397},{"style":71},[4398],{"type":14,"value":1433},{"type":9,"tag":41,"props":4400,"children":4401},{"style":48},[4402],{"type":14,"value":1491},{"type":9,"tag":41,"props":4404,"children":4405},{"style":71},[4406],{"type":14,"value":4270},{"type":9,"tag":41,"props":4408,"children":4409},{"class":43,"line":742},[4410],{"type":9,"tag":41,"props":4411,"children":4412},{"style":48},[4413],{"type":14,"value":4414},"  \u002F>\n",{"type":9,"tag":41,"props":4416,"children":4417},{"class":43,"line":759},[4418,4422,4426],{"type":9,"tag":41,"props":4419,"children":4420},{"style":48},[4421],{"type":14,"value":1372},{"type":9,"tag":41,"props":4423,"children":4424},{"style":54},[4425],{"type":14,"value":1401},{"type":9,"tag":41,"props":4427,"children":4428},{"style":48},[4429],{"type":14,"value":84},{"type":9,"tag":1518,"props":4431,"children":4432},{},[4433],{"type":14,"value":1522},{"title":22,"searchDepth":87,"depth":87,"links":4435},[],{"code":4437,"filePath":4438,"pascalName":4439},"\u003Cscript setup lang=\"ts\">\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  name: afz.string().min(2).meta({ label: '姓名' }).default('默认值'),\n  age: afz.number().min(0).meta({ label: '年龄' })\n})\nconst state = reactive\u003CPartial\u003Cz.output\u003Ctypeof schema>>>({})\nconst apiForm = useTemplateRef('apiForm')\n\nasync function onSubmit() {\n  await new Promise(r => setTimeout(r, 600))\n  toast.add({ title: '通过暴露 API 提交成功', color: 'success' })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex flex-wrap gap-2\">\n      \u003CUButton size=\"sm\" label=\"submit()\" @click=\"apiForm?.formRef?.submit()\" \u002F>\n      \u003CUButton size=\"sm\" variant=\"soft\" label=\"reset()\" @click=\"apiForm?.reset()\" \u002F>\n      \u003CUButton size=\"sm\" variant=\"soft\" color=\"neutral\" label=\"clear()\" @click=\"apiForm?.clear()\" \u002F>\n    \u003C\u002Fdiv>\n    \u003CMAutoForm ref=\"apiForm\" v-model=\"state\" :schema=\"schema\" :submit=\"false\" @submit=\"onSubmit\" \u002F>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fauto-form\u002Fsubmit\u002FAutoFormSubmitRefExample.vue","AutoFormSubmitRefExample",{"data":4441,"body":4442,"toc":5456},{"title":22,"description":22},{"type":6,"children":4443},[4444,5452],{"type":9,"tag":30,"props":4445,"children":4447},{"className":32,"code":4446,"language":34,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nimport type { z } from 'zod'\n\nconst { afz } = useAutoForm()\nconst toast = useToast()\n\nconst schema = afz.object({\n  name: afz.string().min(2).meta({ label: '姓名' }).default('默认值'),\n  age: afz.number().min(0).meta({ label: '年龄' })\n})\nconst state = reactive\u003CPartial\u003Cz.output\u003Ctypeof schema>>>({})\nconst apiForm = useTemplateRef('apiForm')\n\nasync function onSubmit() {\n  await new Promise(r => setTimeout(r, 600))\n  toast.add({ title: '通过暴露 API 提交成功', color: 'success' })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex flex-wrap gap-2\">\n      \u003CUButton size=\"sm\" label=\"submit()\" @click=\"apiForm?.formRef?.submit()\" \u002F>\n      \u003CUButton size=\"sm\" variant=\"soft\" label=\"reset()\" @click=\"apiForm?.reset()\" \u002F>\n      \u003CUButton size=\"sm\" variant=\"soft\" color=\"neutral\" label=\"clear()\" @click=\"apiForm?.clear()\" \u002F>\n    \u003C\u002Fdiv>\n    \u003CMAutoForm ref=\"apiForm\" v-model=\"state\" :schema=\"schema\" :submit=\"false\" @submit=\"onSubmit\" \u002F>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[4448],{"type":9,"tag":37,"props":4449,"children":4450},{"__ignoreMap":22},[4451,4482,4505,4512,4543,4566,4573,4600,4666,4717,4724,4779,4813,4820,4839,4883,4915,4922,4937,4944,4959,4989,5018,5098,5186,5285,5301,5421,5437],{"type":9,"tag":41,"props":4452,"children":4453},{"class":43,"line":44},[4454,4458,4462,4466,4470,4474,4478],{"type":9,"tag":41,"props":4455,"children":4456},{"style":48},[4457],{"type":14,"value":51},{"type":9,"tag":41,"props":4459,"children":4460},{"style":54},[4461],{"type":14,"value":57},{"type":9,"tag":41,"props":4463,"children":4464},{"style":60},[4465],{"type":14,"value":79},{"type":9,"tag":41,"props":4467,"children":4468},{"style":60},[4469],{"type":14,"value":63},{"type":9,"tag":41,"props":4471,"children":4472},{"style":48},[4473],{"type":14,"value":68},{"type":9,"tag":41,"props":4475,"children":4476},{"style":71},[4477],{"type":14,"value":74},{"type":9,"tag":41,"props":4479,"children":4480},{"style":48},[4481],{"type":14,"value":84},{"type":9,"tag":41,"props":4483,"children":4484},{"class":43,"line":87},[4485,4489,4493,4497,4501],{"type":9,"tag":41,"props":4486,"children":4487},{"style":91},[4488],{"type":14,"value":94},{"type":9,"tag":41,"props":4490,"children":4491},{"style":91},[4492],{"type":14,"value":99},{"type":9,"tag":41,"props":4494,"children":4495},{"style":48},[4496],{"type":14,"value":131},{"type":9,"tag":41,"props":4498,"children":4499},{"style":91},[4500],{"type":14,"value":109},{"type":9,"tag":41,"props":4502,"children":4503},{"style":71},[4504],{"type":14,"value":140},{"type":9,"tag":41,"props":4506,"children":4507},{"class":43,"line":117},[4508],{"type":9,"tag":41,"props":4509,"children":4510},{"emptyLinePlaceholder":173},[4511],{"type":14,"value":176},{"type":9,"tag":41,"props":4513,"children":4514},{"class":43,"line":143},[4515,4519,4523,4527,4531,4535,4539],{"type":9,"tag":41,"props":4516,"children":4517},{"style":91},[4518],{"type":14,"value":185},{"type":9,"tag":41,"props":4520,"children":4521},{"style":48},[4522],{"type":14,"value":190},{"type":9,"tag":41,"props":4524,"children":4525},{"style":193},[4526],{"type":14,"value":196},{"type":9,"tag":41,"props":4528,"children":4529},{"style":48},[4530],{"type":14,"value":201},{"type":9,"tag":41,"props":4532,"children":4533},{"style":91},[4534],{"type":14,"value":68},{"type":9,"tag":41,"props":4536,"children":4537},{"style":60},[4538],{"type":14,"value":210},{"type":9,"tag":41,"props":4540,"children":4541},{"style":48},[4542],{"type":14,"value":215},{"type":9,"tag":41,"props":4544,"children":4545},{"class":43,"line":169},[4546,4550,4554,4558,4562],{"type":9,"tag":41,"props":4547,"children":4548},{"style":91},[4549],{"type":14,"value":185},{"type":9,"tag":41,"props":4551,"children":4552},{"style":193},[4553],{"type":14,"value":228},{"type":9,"tag":41,"props":4555,"children":4556},{"style":91},[4557],{"type":14,"value":233},{"type":9,"tag":41,"props":4559,"children":4560},{"style":60},[4561],{"type":14,"value":238},{"type":9,"tag":41,"props":4563,"children":4564},{"style":48},[4565],{"type":14,"value":215},{"type":9,"tag":41,"props":4567,"children":4568},{"class":43,"line":179},[4569],{"type":9,"tag":41,"props":4570,"children":4571},{"emptyLinePlaceholder":173},[4572],{"type":14,"value":176},{"type":9,"tag":41,"props":4574,"children":4575},{"class":43,"line":218},[4576,4580,4584,4588,4592,4596],{"type":9,"tag":41,"props":4577,"children":4578},{"style":91},[4579],{"type":14,"value":185},{"type":9,"tag":41,"props":4581,"children":4582},{"style":193},[4583],{"type":14,"value":263},{"type":9,"tag":41,"props":4585,"children":4586},{"style":91},[4587],{"type":14,"value":233},{"type":9,"tag":41,"props":4589,"children":4590},{"style":48},[4591],{"type":14,"value":272},{"type":9,"tag":41,"props":4593,"children":4594},{"style":60},[4595],{"type":14,"value":277},{"type":9,"tag":41,"props":4597,"children":4598},{"style":48},[4599],{"type":14,"value":282},{"type":9,"tag":41,"props":4601,"children":4602},{"class":43,"line":245},[4603,4607,4611,4615,4619,4623,4627,4631,4635,4639,4643,4648,4652,4656,4661],{"type":9,"tag":41,"props":4604,"children":4605},{"style":48},[4606],{"type":14,"value":2558},{"type":9,"tag":41,"props":4608,"children":4609},{"style":60},[4610],{"type":14,"value":425},{"type":9,"tag":41,"props":4612,"children":4613},{"style":48},[4614],{"type":14,"value":2567},{"type":9,"tag":41,"props":4616,"children":4617},{"style":60},[4618],{"type":14,"value":453},{"type":9,"tag":41,"props":4620,"children":4621},{"style":48},[4622],{"type":14,"value":348},{"type":9,"tag":41,"props":4624,"children":4625},{"style":193},[4626],{"type":14,"value":1341},{"type":9,"tag":41,"props":4628,"children":4629},{"style":48},[4630],{"type":14,"value":1967},{"type":9,"tag":41,"props":4632,"children":4633},{"style":60},[4634],{"type":14,"value":370},{"type":9,"tag":41,"props":4636,"children":4637},{"style":48},[4638],{"type":14,"value":375},{"type":9,"tag":41,"props":4640,"children":4641},{"style":71},[4642],{"type":14,"value":2596},{"type":9,"tag":41,"props":4644,"children":4645},{"style":48},[4646],{"type":14,"value":4647}," }).",{"type":9,"tag":41,"props":4649,"children":4650},{"style":60},[4651],{"type":14,"value":343},{"type":9,"tag":41,"props":4653,"children":4654},{"style":48},[4655],{"type":14,"value":348},{"type":9,"tag":41,"props":4657,"children":4658},{"style":71},[4659],{"type":14,"value":4660},"'默认值'",{"type":9,"tag":41,"props":4662,"children":4663},{"style":48},[4664],{"type":14,"value":4665},"),\n",{"type":9,"tag":41,"props":4667,"children":4668},{"class":43,"line":253},[4669,4674,4679,4683,4687,4691,4696,4700,4704,4708,4713],{"type":9,"tag":41,"props":4670,"children":4671},{"style":48},[4672],{"type":14,"value":4673},"  age: afz.",{"type":9,"tag":41,"props":4675,"children":4676},{"style":60},[4677],{"type":14,"value":4678},"number",{"type":9,"tag":41,"props":4680,"children":4681},{"style":48},[4682],{"type":14,"value":2567},{"type":9,"tag":41,"props":4684,"children":4685},{"style":60},[4686],{"type":14,"value":453},{"type":9,"tag":41,"props":4688,"children":4689},{"style":48},[4690],{"type":14,"value":348},{"type":9,"tag":41,"props":4692,"children":4693},{"style":193},[4694],{"type":14,"value":4695},"0",{"type":9,"tag":41,"props":4697,"children":4698},{"style":48},[4699],{"type":14,"value":1967},{"type":9,"tag":41,"props":4701,"children":4702},{"style":60},[4703],{"type":14,"value":370},{"type":9,"tag":41,"props":4705,"children":4706},{"style":48},[4707],{"type":14,"value":375},{"type":9,"tag":41,"props":4709,"children":4710},{"style":71},[4711],{"type":14,"value":4712},"'年龄'",{"type":9,"tag":41,"props":4714,"children":4715},{"style":48},[4716],{"type":14,"value":2135},{"type":9,"tag":41,"props":4718,"children":4719},{"class":43,"line":285},[4720],{"type":9,"tag":41,"props":4721,"children":4722},{"style":48},[4723],{"type":14,"value":1079},{"type":9,"tag":41,"props":4725,"children":4726},{"class":43,"line":294},[4727,4731,4735,4739,4743,4747,4751,4755,4759,4763,4767,4771,4775],{"type":9,"tag":41,"props":4728,"children":4729},{"style":91},[4730],{"type":14,"value":185},{"type":9,"tag":41,"props":4732,"children":4733},{"style":193},[4734],{"type":14,"value":2161},{"type":9,"tag":41,"props":4736,"children":4737},{"style":91},[4738],{"type":14,"value":233},{"type":9,"tag":41,"props":4740,"children":4741},{"style":60},[4742],{"type":14,"value":2170},{"type":9,"tag":41,"props":4744,"children":4745},{"style":48},[4746],{"type":14,"value":51},{"type":9,"tag":41,"props":4748,"children":4749},{"style":60},[4750],{"type":14,"value":1173},{"type":9,"tag":41,"props":4752,"children":4753},{"style":48},[4754],{"type":14,"value":51},{"type":9,"tag":41,"props":4756,"children":4757},{"style":60},[4758],{"type":14,"value":2187},{"type":9,"tag":41,"props":4760,"children":4761},{"style":48},[4762],{"type":14,"value":1115},{"type":9,"tag":41,"props":4764,"children":4765},{"style":60},[4766],{"type":14,"value":1120},{"type":9,"tag":41,"props":4768,"children":4769},{"style":48},[4770],{"type":14,"value":51},{"type":9,"tag":41,"props":4772,"children":4773},{"style":91},[4774],{"type":14,"value":1129},{"type":9,"tag":41,"props":4776,"children":4777},{"style":48},[4778],{"type":14,"value":2208},{"type":9,"tag":41,"props":4780,"children":4781},{"class":43,"line":333},[4782,4786,4791,4795,4800,4804,4809],{"type":9,"tag":41,"props":4783,"children":4784},{"style":91},[4785],{"type":14,"value":185},{"type":9,"tag":41,"props":4787,"children":4788},{"style":193},[4789],{"type":14,"value":4790}," apiForm",{"type":9,"tag":41,"props":4792,"children":4793},{"style":91},[4794],{"type":14,"value":233},{"type":9,"tag":41,"props":4796,"children":4797},{"style":60},[4798],{"type":14,"value":4799}," useTemplateRef",{"type":9,"tag":41,"props":4801,"children":4802},{"style":48},[4803],{"type":14,"value":348},{"type":9,"tag":41,"props":4805,"children":4806},{"style":71},[4807],{"type":14,"value":4808},"'apiForm'",{"type":9,"tag":41,"props":4810,"children":4811},{"style":48},[4812],{"type":14,"value":357},{"type":9,"tag":41,"props":4814,"children":4815},{"class":43,"line":360},[4816],{"type":9,"tag":41,"props":4817,"children":4818},{"emptyLinePlaceholder":173},[4819],{"type":14,"value":176},{"type":9,"tag":41,"props":4821,"children":4822},{"class":43,"line":398},[4823,4827,4831,4835],{"type":9,"tag":41,"props":4824,"children":4825},{"style":91},[4826],{"type":14,"value":1204},{"type":9,"tag":41,"props":4828,"children":4829},{"style":91},[4830],{"type":14,"value":1209},{"type":9,"tag":41,"props":4832,"children":4833},{"style":60},[4834],{"type":14,"value":1214},{"type":9,"tag":41,"props":4836,"children":4837},{"style":48},[4838],{"type":14,"value":2689},{"type":9,"tag":41,"props":4840,"children":4841},{"class":43,"line":406},[4842,4846,4850,4854,4858,4862,4866,4870,4874,4879],{"type":9,"tag":41,"props":4843,"children":4844},{"style":91},[4845],{"type":14,"value":2697},{"type":9,"tag":41,"props":4847,"children":4848},{"style":91},[4849],{"type":14,"value":2702},{"type":9,"tag":41,"props":4851,"children":4852},{"style":193},[4853],{"type":14,"value":2707},{"type":9,"tag":41,"props":4855,"children":4856},{"style":48},[4857],{"type":14,"value":348},{"type":9,"tag":41,"props":4859,"children":4860},{"style":612},[4861],{"type":14,"value":2716},{"type":9,"tag":41,"props":4863,"children":4864},{"style":91},[4865],{"type":14,"value":2721},{"type":9,"tag":41,"props":4867,"children":4868},{"style":60},[4869],{"type":14,"value":2726},{"type":9,"tag":41,"props":4871,"children":4872},{"style":48},[4873],{"type":14,"value":2731},{"type":9,"tag":41,"props":4875,"children":4876},{"style":193},[4877],{"type":14,"value":4878},"600",{"type":9,"tag":41,"props":4880,"children":4881},{"style":48},[4882],{"type":14,"value":2741},{"type":9,"tag":41,"props":4884,"children":4885},{"class":43,"line":415},[4886,4890,4894,4898,4903,4907,4911],{"type":9,"tag":41,"props":4887,"children":4888},{"style":48},[4889],{"type":14,"value":1254},{"type":9,"tag":41,"props":4891,"children":4892},{"style":60},[4893],{"type":14,"value":1259},{"type":9,"tag":41,"props":4895,"children":4896},{"style":48},[4897],{"type":14,"value":2757},{"type":9,"tag":41,"props":4899,"children":4900},{"style":71},[4901],{"type":14,"value":4902},"'通过暴露 API 提交成功'",{"type":9,"tag":41,"props":4904,"children":4905},{"style":48},[4906],{"type":14,"value":2775},{"type":9,"tag":41,"props":4908,"children":4909},{"style":71},[4910],{"type":14,"value":1295},{"type":9,"tag":41,"props":4912,"children":4913},{"style":48},[4914],{"type":14,"value":2135},{"type":9,"tag":41,"props":4916,"children":4917},{"class":43,"line":443},[4918],{"type":9,"tag":41,"props":4919,"children":4920},{"style":48},[4921],{"type":14,"value":1363},{"type":9,"tag":41,"props":4923,"children":4924},{"class":43,"line":478},[4925,4929,4933],{"type":9,"tag":41,"props":4926,"children":4927},{"style":48},[4928],{"type":14,"value":1372},{"type":9,"tag":41,"props":4930,"children":4931},{"style":54},[4932],{"type":14,"value":57},{"type":9,"tag":41,"props":4934,"children":4935},{"style":48},[4936],{"type":14,"value":84},{"type":9,"tag":41,"props":4938,"children":4939},{"class":43,"line":503},[4940],{"type":9,"tag":41,"props":4941,"children":4942},{"emptyLinePlaceholder":173},[4943],{"type":14,"value":176},{"type":9,"tag":41,"props":4945,"children":4946},{"class":43,"line":511},[4947,4951,4955],{"type":9,"tag":41,"props":4948,"children":4949},{"style":48},[4950],{"type":14,"value":51},{"type":9,"tag":41,"props":4952,"children":4953},{"style":54},[4954],{"type":14,"value":1401},{"type":9,"tag":41,"props":4956,"children":4957},{"style":48},[4958],{"type":14,"value":84},{"type":9,"tag":41,"props":4960,"children":4961},{"class":43,"line":520},[4962,4966,4971,4976,4980,4985],{"type":9,"tag":41,"props":4963,"children":4964},{"style":48},[4965],{"type":14,"value":1414},{"type":9,"tag":41,"props":4967,"children":4968},{"style":54},[4969],{"type":14,"value":4970},"div",{"type":9,"tag":41,"props":4972,"children":4973},{"style":60},[4974],{"type":14,"value":4975}," class",{"type":9,"tag":41,"props":4977,"children":4978},{"style":48},[4979],{"type":14,"value":68},{"type":9,"tag":41,"props":4981,"children":4982},{"style":71},[4983],{"type":14,"value":4984},"\"flex flex-col gap-3\"",{"type":9,"tag":41,"props":4986,"children":4987},{"style":48},[4988],{"type":14,"value":84},{"type":9,"tag":41,"props":4990,"children":4991},{"class":43,"line":545},[4992,4997,5001,5005,5009,5014],{"type":9,"tag":41,"props":4993,"children":4994},{"style":48},[4995],{"type":14,"value":4996},"    \u003C",{"type":9,"tag":41,"props":4998,"children":4999},{"style":54},[5000],{"type":14,"value":4970},{"type":9,"tag":41,"props":5002,"children":5003},{"style":60},[5004],{"type":14,"value":4975},{"type":9,"tag":41,"props":5006,"children":5007},{"style":48},[5008],{"type":14,"value":68},{"type":9,"tag":41,"props":5010,"children":5011},{"style":71},[5012],{"type":14,"value":5013},"\"flex flex-wrap gap-2\"",{"type":9,"tag":41,"props":5015,"children":5016},{"style":48},[5017],{"type":14,"value":84},{"type":9,"tag":41,"props":5019,"children":5020},{"class":43,"line":561},[5021,5026,5031,5036,5040,5045,5050,5054,5059,5063,5068,5072,5076,5081,5085,5090,5094],{"type":9,"tag":41,"props":5022,"children":5023},{"style":48},[5024],{"type":14,"value":5025},"      \u003C",{"type":9,"tag":41,"props":5027,"children":5028},{"style":54},[5029],{"type":14,"value":5030},"UButton",{"type":9,"tag":41,"props":5032,"children":5033},{"style":60},[5034],{"type":14,"value":5035}," size",{"type":9,"tag":41,"props":5037,"children":5038},{"style":48},[5039],{"type":14,"value":68},{"type":9,"tag":41,"props":5041,"children":5042},{"style":71},[5043],{"type":14,"value":5044},"\"sm\"",{"type":9,"tag":41,"props":5046,"children":5047},{"style":60},[5048],{"type":14,"value":5049}," label",{"type":9,"tag":41,"props":5051,"children":5052},{"style":48},[5053],{"type":14,"value":68},{"type":9,"tag":41,"props":5055,"children":5056},{"style":71},[5057],{"type":14,"value":5058},"\"submit()\"",{"type":9,"tag":41,"props":5060,"children":5061},{"style":48},[5062],{"type":14,"value":1473},{"type":9,"tag":41,"props":5064,"children":5065},{"style":60},[5066],{"type":14,"value":5067},"click",{"type":9,"tag":41,"props":5069,"children":5070},{"style":48},[5071],{"type":14,"value":68},{"type":9,"tag":41,"props":5073,"children":5074},{"style":71},[5075],{"type":14,"value":1433},{"type":9,"tag":41,"props":5077,"children":5078},{"style":48},[5079],{"type":14,"value":5080},"apiForm?.formRef?.",{"type":9,"tag":41,"props":5082,"children":5083},{"style":60},[5084],{"type":14,"value":1478},{"type":9,"tag":41,"props":5086,"children":5087},{"style":48},[5088],{"type":14,"value":5089},"()",{"type":9,"tag":41,"props":5091,"children":5092},{"style":71},[5093],{"type":14,"value":1433},{"type":9,"tag":41,"props":5095,"children":5096},{"style":48},[5097],{"type":14,"value":1500},{"type":9,"tag":41,"props":5099,"children":5100},{"class":43,"line":580},[5101,5105,5109,5113,5117,5121,5126,5130,5135,5139,5143,5148,5152,5156,5160,5164,5169,5174,5178,5182],{"type":9,"tag":41,"props":5102,"children":5103},{"style":48},[5104],{"type":14,"value":5025},{"type":9,"tag":41,"props":5106,"children":5107},{"style":54},[5108],{"type":14,"value":5030},{"type":9,"tag":41,"props":5110,"children":5111},{"style":60},[5112],{"type":14,"value":5035},{"type":9,"tag":41,"props":5114,"children":5115},{"style":48},[5116],{"type":14,"value":68},{"type":9,"tag":41,"props":5118,"children":5119},{"style":71},[5120],{"type":14,"value":5044},{"type":9,"tag":41,"props":5122,"children":5123},{"style":60},[5124],{"type":14,"value":5125}," variant",{"type":9,"tag":41,"props":5127,"children":5128},{"style":48},[5129],{"type":14,"value":68},{"type":9,"tag":41,"props":5131,"children":5132},{"style":71},[5133],{"type":14,"value":5134},"\"soft\"",{"type":9,"tag":41,"props":5136,"children":5137},{"style":60},[5138],{"type":14,"value":5049},{"type":9,"tag":41,"props":5140,"children":5141},{"style":48},[5142],{"type":14,"value":68},{"type":9,"tag":41,"props":5144,"children":5145},{"style":71},[5146],{"type":14,"value":5147},"\"reset()\"",{"type":9,"tag":41,"props":5149,"children":5150},{"style":48},[5151],{"type":14,"value":1473},{"type":9,"tag":41,"props":5153,"children":5154},{"style":60},[5155],{"type":14,"value":5067},{"type":9,"tag":41,"props":5157,"children":5158},{"style":48},[5159],{"type":14,"value":68},{"type":9,"tag":41,"props":5161,"children":5162},{"style":71},[5163],{"type":14,"value":1433},{"type":9,"tag":41,"props":5165,"children":5166},{"style":48},[5167],{"type":14,"value":5168},"apiForm?.",{"type":9,"tag":41,"props":5170,"children":5171},{"style":60},[5172],{"type":14,"value":5173},"reset",{"type":9,"tag":41,"props":5175,"children":5176},{"style":48},[5177],{"type":14,"value":5089},{"type":9,"tag":41,"props":5179,"children":5180},{"style":71},[5181],{"type":14,"value":1433},{"type":9,"tag":41,"props":5183,"children":5184},{"style":48},[5185],{"type":14,"value":1500},{"type":9,"tag":41,"props":5187,"children":5188},{"class":43,"line":598},[5189,5193,5197,5201,5205,5209,5213,5217,5221,5226,5230,5235,5239,5243,5248,5252,5256,5260,5264,5268,5273,5277,5281],{"type":9,"tag":41,"props":5190,"children":5191},{"style":48},[5192],{"type":14,"value":5025},{"type":9,"tag":41,"props":5194,"children":5195},{"style":54},[5196],{"type":14,"value":5030},{"type":9,"tag":41,"props":5198,"children":5199},{"style":60},[5200],{"type":14,"value":5035},{"type":9,"tag":41,"props":5202,"children":5203},{"style":48},[5204],{"type":14,"value":68},{"type":9,"tag":41,"props":5206,"children":5207},{"style":71},[5208],{"type":14,"value":5044},{"type":9,"tag":41,"props":5210,"children":5211},{"style":60},[5212],{"type":14,"value":5125},{"type":9,"tag":41,"props":5214,"children":5215},{"style":48},[5216],{"type":14,"value":68},{"type":9,"tag":41,"props":5218,"children":5219},{"style":71},[5220],{"type":14,"value":5134},{"type":9,"tag":41,"props":5222,"children":5223},{"style":60},[5224],{"type":14,"value":5225}," color",{"type":9,"tag":41,"props":5227,"children":5228},{"style":48},[5229],{"type":14,"value":68},{"type":9,"tag":41,"props":5231,"children":5232},{"style":71},[5233],{"type":14,"value":5234},"\"neutral\"",{"type":9,"tag":41,"props":5236,"children":5237},{"style":60},[5238],{"type":14,"value":5049},{"type":9,"tag":41,"props":5240,"children":5241},{"style":48},[5242],{"type":14,"value":68},{"type":9,"tag":41,"props":5244,"children":5245},{"style":71},[5246],{"type":14,"value":5247},"\"clear()\"",{"type":9,"tag":41,"props":5249,"children":5250},{"style":48},[5251],{"type":14,"value":1473},{"type":9,"tag":41,"props":5253,"children":5254},{"style":60},[5255],{"type":14,"value":5067},{"type":9,"tag":41,"props":5257,"children":5258},{"style":48},[5259],{"type":14,"value":68},{"type":9,"tag":41,"props":5261,"children":5262},{"style":71},[5263],{"type":14,"value":1433},{"type":9,"tag":41,"props":5265,"children":5266},{"style":48},[5267],{"type":14,"value":5168},{"type":9,"tag":41,"props":5269,"children":5270},{"style":60},[5271],{"type":14,"value":5272},"clear",{"type":9,"tag":41,"props":5274,"children":5275},{"style":48},[5276],{"type":14,"value":5089},{"type":9,"tag":41,"props":5278,"children":5279},{"style":71},[5280],{"type":14,"value":1433},{"type":9,"tag":41,"props":5282,"children":5283},{"style":48},[5284],{"type":14,"value":1500},{"type":9,"tag":41,"props":5286,"children":5287},{"class":43,"line":658},[5288,5293,5297],{"type":9,"tag":41,"props":5289,"children":5290},{"style":48},[5291],{"type":14,"value":5292},"    \u003C\u002F",{"type":9,"tag":41,"props":5294,"children":5295},{"style":54},[5296],{"type":14,"value":4970},{"type":9,"tag":41,"props":5298,"children":5299},{"style":48},[5300],{"type":14,"value":84},{"type":9,"tag":41,"props":5302,"children":5303},{"class":43,"line":667},[5304,5308,5312,5316,5320,5325,5329,5333,5337,5341,5345,5349,5353,5357,5361,5365,5369,5373,5377,5381,5385,5389,5393,5397,5401,5405,5409,5413,5417],{"type":9,"tag":41,"props":5305,"children":5306},{"style":48},[5307],{"type":14,"value":4996},{"type":9,"tag":41,"props":5309,"children":5310},{"style":54},[5311],{"type":14,"value":1419},{"type":9,"tag":41,"props":5313,"children":5314},{"style":60},[5315],{"type":14,"value":1164},{"type":9,"tag":41,"props":5317,"children":5318},{"style":48},[5319],{"type":14,"value":68},{"type":9,"tag":41,"props":5321,"children":5322},{"style":71},[5323],{"type":14,"value":5324},"\"apiForm\"",{"type":9,"tag":41,"props":5326,"children":5327},{"style":60},[5328],{"type":14,"value":1424},{"type":9,"tag":41,"props":5330,"children":5331},{"style":48},[5332],{"type":14,"value":68},{"type":9,"tag":41,"props":5334,"children":5335},{"style":71},[5336],{"type":14,"value":1433},{"type":9,"tag":41,"props":5338,"children":5339},{"style":48},[5340],{"type":14,"value":615},{"type":9,"tag":41,"props":5342,"children":5343},{"style":71},[5344],{"type":14,"value":1433},{"type":9,"tag":41,"props":5346,"children":5347},{"style":48},[5348],{"type":14,"value":1447},{"type":9,"tag":41,"props":5350,"children":5351},{"style":60},[5352],{"type":14,"value":1452},{"type":9,"tag":41,"props":5354,"children":5355},{"style":48},[5356],{"type":14,"value":68},{"type":9,"tag":41,"props":5358,"children":5359},{"style":71},[5360],{"type":14,"value":1433},{"type":9,"tag":41,"props":5362,"children":5363},{"style":48},[5364],{"type":14,"value":1452},{"type":9,"tag":41,"props":5366,"children":5367},{"style":71},[5368],{"type":14,"value":1433},{"type":9,"tag":41,"props":5370,"children":5371},{"style":48},[5372],{"type":14,"value":1447},{"type":9,"tag":41,"props":5374,"children":5375},{"style":60},[5376],{"type":14,"value":1478},{"type":9,"tag":41,"props":5378,"children":5379},{"style":48},[5380],{"type":14,"value":68},{"type":9,"tag":41,"props":5382,"children":5383},{"style":71},[5384],{"type":14,"value":1433},{"type":9,"tag":41,"props":5386,"children":5387},{"style":193},[5388],{"type":14,"value":867},{"type":9,"tag":41,"props":5390,"children":5391},{"style":71},[5392],{"type":14,"value":1433},{"type":9,"tag":41,"props":5394,"children":5395},{"style":48},[5396],{"type":14,"value":1473},{"type":9,"tag":41,"props":5398,"children":5399},{"style":60},[5400],{"type":14,"value":1478},{"type":9,"tag":41,"props":5402,"children":5403},{"style":48},[5404],{"type":14,"value":68},{"type":9,"tag":41,"props":5406,"children":5407},{"style":71},[5408],{"type":14,"value":1433},{"type":9,"tag":41,"props":5410,"children":5411},{"style":48},[5412],{"type":14,"value":1491},{"type":9,"tag":41,"props":5414,"children":5415},{"style":71},[5416],{"type":14,"value":1433},{"type":9,"tag":41,"props":5418,"children":5419},{"style":48},[5420],{"type":14,"value":1500},{"type":9,"tag":41,"props":5422,"children":5423},{"class":43,"line":675},[5424,5429,5433],{"type":9,"tag":41,"props":5425,"children":5426},{"style":48},[5427],{"type":14,"value":5428},"  \u003C\u002F",{"type":9,"tag":41,"props":5430,"children":5431},{"style":54},[5432],{"type":14,"value":4970},{"type":9,"tag":41,"props":5434,"children":5435},{"style":48},[5436],{"type":14,"value":84},{"type":9,"tag":41,"props":5438,"children":5439},{"class":43,"line":684},[5440,5444,5448],{"type":9,"tag":41,"props":5441,"children":5442},{"style":48},[5443],{"type":14,"value":1372},{"type":9,"tag":41,"props":5445,"children":5446},{"style":54},[5447],{"type":14,"value":1401},{"type":9,"tag":41,"props":5449,"children":5450},{"style":48},[5451],{"type":14,"value":84},{"type":9,"tag":1518,"props":5453,"children":5454},{},[5455],{"type":14,"value":1522},{"title":22,"searchDepth":87,"depth":87,"links":5457},[],{"id":5459,"title":5460,"body":5461,"category":5872,"description":15,"difficulty":5872,"extension":5873,"index":5874,"keywords":5872,"links":5872,"meta":5875,"navigation":5872,"path":5876,"requires":5872,"seo":5877,"sitemap":5878,"stem":5879,"__hash__":5880},"docs\u002Fdocs\u002F2.auto-form\u002F7.reactive-submit.md","联动与提交",{"type":5462,"value":5463,"toc":5859},"minimark",[5464,5468,5472,5506,5545,5548,5552,5566,5576,5579,5582,5588,5598,5604,5606,5665,5669,5673,5759,5780,5783,5789,5798,5800,5804,5814,5816,5819,5828,5830,5833,5854,5856],[5465,5466,5467],"h2",{"id":5467},"条件渲染",[5469,5470,5471],"h3",{"id":5471},"概述",[10,5473,5474,5475,5479,5480,5483,5484,5487,5488,5495,5496,5498,5499,5498,5502,5505],{},"AutoForm 的 meta 字段均可传入",[5476,5477,5478],"strong",{},"响应式函数"," ",[37,5481,5482],{},"(ctx) => value","，",[37,5485,5486],{},"ctx"," 为 ",[5489,5490,5492],"a",{"href":5491},"\u002Fdocs\u002Fauto-form\u002Fslots#autoformfieldcontext",[37,5493,5494],{},"AutoFormFieldContext","（含 ",[37,5497,615],{},"、",[37,5500,5501],{},"path",[37,5503,5504],{},"value","）。函数会随表单状态自动重算，从而实现条件渲染与字段联动。",[5507,5508,5509,5512],"note",{},[10,5510,5511],{},"条件渲染有两种方式，行为不同：",[5513,5514,5515,5531],"ul",{},[5516,5517,5518,5523,5524,5526,5527,5530],"li",{},[5476,5519,5520],{},[37,5521,5522],{},"if"," - 显示条件，结果为 ",[37,5525,867],{}," 时字段",[5476,5528,5529],{},"不会创建","（不挂载、不参与校验）。",[5516,5532,5533,5538,5539,5526,5541,5544],{},[5476,5534,5535],{},[37,5536,5537],{},"hidden"," - 是否隐藏，结果为 ",[37,5540,959],{},[5476,5542,5543],{},"仍保留在 DOM 与表单数据中","，只是视觉隐藏。",[5469,5546,5547],{"id":5547},"示例",[5549,5550,5467],"h4",{"id":5551},"条件渲染-1",[10,5553,5554,5556,5557,5559,5560,5562,5563,5565],{},[37,5555,5522],{}," 与 ",[37,5558,5537],{}," 接收返回布尔值的函数：切换账户类型时，企业字段（",[37,5561,5522],{},"）按需挂载\u002F卸载；勾选条款后，订阅字段（",[37,5564,5537],{},"）从隐藏切换为显示。",[5567,5568,5569,5570,5572,5573,5575],"tip",{},"需要彻底排除字段（不校验、不提交）用 ",[37,5571,5522],{},"；只想临时隐藏但保留取值用 ",[37,5574,5537],{},"。",[5577,5578],"component-example",{"name":19,":collapse":959},[5549,5580,5581],{"id":5581},"依赖联动",[10,5583,5584,5585,5575],{},"当控件属性取决于组件内的响应式状态时，可以省略回调参数。字面量会按控件属性类型推断，例如 ",[37,5586,5587],{},"afz.string({ controlProps: () => ({ size: compact.value ? 'sm' : 'lg' }) })",[10,5589,5590,5591,5594,5595,5597],{},"函数式 ",[37,5592,5593],{},"controlProps"," 随其它字段变化重算控件属性。下例中城市选项依赖国家字段，并通过 ",[37,5596,2223],{}," 在国家变化时清空已失效的旧值。",[5507,5599,5600,5601,5603],{},"联动仅重算控件属性，不会自动清除旧值。需要清空失效选项时，配合 ",[37,5602,2223],{}," 手动重置。",[5577,5605],{"name":1528,":collapse":959},[5607,5608,5611,5651],"callout",{"color":5609,"icon":5610},"warning","i-lucide-triangle-alert",[10,5612,5613,5614,5617,5618,5621,5622,5498,5625,5628,5629,5632,5633,5636,5637,5479,5640,5643,5644,5647,5648,5575],{},"当 ",[37,5615,5616],{},"items"," 来源是",[5476,5619,5620],{},"异步或外部响应式数据","（基于 ",[37,5623,5624],{},"useApiFetch",[37,5626,5627],{},"useAsyncData"," 的 ",[37,5630,5631],{},"computed"," \u002F ",[37,5634,5635],{},"ref","）时，务必用",[5476,5638,5639],{},"函数式",[37,5641,5642],{},"controlProps: () => ({ items: source.value })","，或直接传响应式来源 ",[37,5645,5646],{},"items: source","，切勿写成 ",[37,5649,5650],{},"items: source.value",[10,5652,5653,5654,5657,5658,5661,5662,5664],{},"schema 在 ",[37,5655,5656],{},"setup"," 期只构建一次，",[37,5659,5660],{},"source.value"," 是当时的一次性快照：SSR 注水时数据恰好就绪会「看似正常」，但客户端导航重新挂载、异步数据尚未到达时会冻结为空数组，后续选项更新不再生效。函数式 ",[37,5663,5593],{}," 在渲染时实时求值，可规避此问题。",[5469,5666,5668],{"id":5667},"api","API",[5549,5670,5671],{"id":370},[37,5672,370],{},[5674,5675,5676,5692],"table",{},[5677,5678,5679],"thead",{},[5680,5681,5682,5686,5689],"tr",{},[5683,5684,5685],"th",{},"Name",[5683,5687,5688],{},"Type",[5683,5690,5691],{},"Description",[5693,5694,5695,5731],"tbody",{},[5680,5696,5697,5702,5725],{},[5698,5699,5700],"td",{},[37,5701,5522],{},[5698,5703,5704],{},[37,5705,5708,5712,5715,5718,5720,5722],{"className":5706,"language":5707,"style":22},"language-ts-type shiki shiki-themes github-light github-light github-dark","ts-type",[41,5709,5711],{"class":5710},"snPdu","ReactiveValue",[41,5713,51],{"class":5714},"sxrX7",[41,5716,842],{"class":5717},"sBjJW",[41,5719,320],{"class":5714},[41,5721,5494],{"class":5710},[41,5723,5724],{"class":5714},">",[5698,5726,5727,5728,5730],{},"显示条件，",[37,5729,867],{}," 时字段不创建",[5680,5732,5733,5737,5753],{},[5698,5734,5735],{},[37,5736,5537],{},[5698,5738,5739],{},[37,5740,5741,5743,5745,5747,5749,5751],{"className":5706,"language":5707,"style":22},[41,5742,5711],{"class":5710},[41,5744,51],{"class":5714},[41,5746,842],{"class":5717},[41,5748,320],{"class":5714},[41,5750,5494],{"class":5710},[41,5752,5724],{"class":5714},[5698,5754,5755,5756,5758],{},"是否隐藏，",[37,5757,959],{}," 时保留 DOM 但视觉隐藏",[5567,5760,5761,5762,5498,5765,5498,5768,5498,5771,5498,5773,5776,5777,5779],{},"除上述字段外，",[37,5763,5764],{},"label",[37,5766,5767],{},"hint",[37,5769,5770],{},"description",[37,5772,5593],{},[37,5774,5775],{},"class"," 等 meta 字段同样支持 ",[37,5778,5482],{}," 函数形态，按表单状态动态求值。",[5465,5781,5782],{"id":5782},"提交",[5469,5784,5786],{"id":5785},"loadingauto",[37,5787,5788],{},"loadingAuto",[10,5790,5791,5794,5795,5797],{},[37,5792,5793],{},"@submit"," 返回 Promise 时，提交按钮的 loading 由 AutoForm 自动管理（",[37,5796,5788],{}," 默认开启）：",[5577,5799],{"name":2390},[5469,5801,5803],{"id":5802},"手动-loading-控制","手动 loading 控制",[10,5805,5806,5807,5809,5810,5813],{},"关闭 ",[37,5808,4310],{},"，由 ",[37,5811,5812],{},"submit-button-props.loading"," 接管按钮状态：",[5577,5815],{"name":3716},[5469,5817,5818],{"id":5818},"异常与校验事件",[10,5820,5821,5823,5824,5827],{},[37,5822,5793],{}," 中处理异步异常；",[37,5825,5826],{},"@error"," 接收字段校验失败：",[5577,5829],{"name":2935},[5469,5831,5832],{"id":5832},"编程式提交",[10,5834,5835,5836,5839,5840,5498,5843,5498,5846,5849,5850,5853],{},"通过 ",[37,5837,5838],{},"useTemplateRef"," 拿到表单实例后，可在外部触发 ",[37,5841,5842],{},"formRef.submit()",[37,5844,5845],{},"reset()",[37,5847,5848],{},"clear()","（配合 ",[37,5851,5852],{},":submit=\"false\""," 隐藏内置按钮）：",[5577,5855],{"name":4439},[1518,5857,5858],{},"html pre.shiki code .snPdu, html code.shiki .snPdu{--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sxrX7, html code.shiki .sxrX7{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sBjJW, html code.shiki .sBjJW{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF}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":5860},[5861,5866],{"id":5467,"depth":87,"text":5467,"children":5862},[5863,5864,5865],{"id":5471,"depth":117,"text":5471},{"id":5547,"depth":117,"text":5547},{"id":5667,"depth":117,"text":5668},{"id":5782,"depth":87,"text":5782,"children":5867},[5868,5869,5870,5871],{"id":5785,"depth":117,"text":5788},{"id":5802,"depth":117,"text":5803},{"id":5818,"depth":117,"text":5818},{"id":5832,"depth":117,"text":5832},null,"md",false,{},"\u002Fdocs\u002Fauto-form\u002Freactive-submit",{"title":5460,"description":15},{"loc":5876},"docs\u002F2.auto-form\u002F7.reactive-submit","8_ORjK5U9KV93tQtHDaBKu4KwK6FQ-R9rxP3EuJxkic",[5882],{"title":5883,"path":5884,"stem":5885,"children":5886,"page":5874},"Docs","\u002Fdocs","docs",[5887,5926,5977,6015,6052],{"title":5888,"path":5889,"stem":5890,"children":5891,"category":5872,"description":5872,"icon":5925},"快速开始","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started\u002F1.index",[5892,5895,5900,5905,5910,5915,5920],{"title":5893,"path":5889,"stem":5890,"category":5872,"description":5894},"介绍","了解 Movk Nuxt 的表单、数据表格、组件和 API 集成，并选择适合 Nuxt 或 Vue + Vite 项目的接入方式。",{"title":5896,"path":5897,"stem":5898,"category":5872,"description":5899},"安装","\u002Fdocs\u002Fgetting-started\u002Finstallation","docs\u002F1.getting-started\u002F2.installation","在 Nuxt 4 项目中安装和配置 Movk Nuxt 模块。",{"title":5901,"path":5902,"stem":5903,"category":5872,"description":5904},"模块配置","\u002Fdocs\u002Fgetting-started\u002Fconfiguration","docs\u002F1.getting-started\u002F3.configuration","配置组件前缀、主题颜色、字体、API 端点、认证策略、响应解析规则和 Toast 提示行为。",{"title":5906,"path":5907,"stem":5908,"category":5872,"description":5909},"Vue \u002F Vite","\u002Fdocs\u002Fgetting-started\u002Fvue","docs\u002F1.getting-started\u002F4.vue","在纯 Vue + Vite 项目中使用 Movk 的独立组件、主题与 Composables，无需 Nuxt。",{"title":5911,"path":5912,"stem":5913,"category":5872,"description":5914},"主题系统","\u002Fdocs\u002Fgetting-started\u002Ftheme","docs\u002F1.getting-started\u002F5.theme","通过模块默认值、ThemePicker 组件和 useTheme composable 管理颜色、圆角、图标集与深色模式，字体则在构建期配置。",{"title":5916,"path":5917,"stem":5918,"category":5872,"description":5919},"迁移到 v2","\u002Fdocs\u002Fgetting-started\u002Fmigration","docs\u002F1.getting-started\u002F6.migration","从 v1 升级到 v2 时需要处理的破坏性变更。",{"title":5921,"path":5922,"stem":5923,"category":5872,"description":5924},"AI 集成","\u002Fdocs\u002Fgetting-started\u002Fai","docs\u002F1.getting-started\u002F7.ai","通过 MCP、llms.txt 与 Skills 让 AI 助手理解 Movk Nuxt。","i-lucide-square-play",{"title":5927,"category":5872,"description":5872,"icon":5928,"path":5929,"stem":5930,"children":5931,"page":5874},"表单","i-lucide-square-pen","\u002Fdocs\u002Fauto-form","docs\u002F2.auto-form",[5932,5936,5941,5946,5951,5956,5961,5966,5967,5972],{"title":5888,"path":5933,"stem":5934,"category":5872,"description":5935},"\u002Fdocs\u002Fauto-form\u002Fquickstart","docs\u002F2.auto-form\u002F1.quickstart","了解 AutoForm 的核心设计理念和基本使用方式。",{"title":5937,"path":5938,"stem":5939,"category":5872,"description":5940},"实战示例","\u002Fdocs\u002Fauto-form\u002Frecipes","docs\u002F2.auto-form\u002F10.recipes","登录、注册分组校验、多文件上传与横向搜索表单等 AutoForm 组合场景。",{"title":5942,"path":5943,"stem":5944,"category":5872,"description":5945},"字段类型","\u002Fdocs\u002Fauto-form\u002Ffield-types","docs\u002F2.auto-form\u002F2.field-types","afz 各字段类型到控件的映射与配置。",{"title":5947,"path":5948,"stem":5949,"category":5872,"description":5950},"对象与数组","\u002Fdocs\u002Fauto-form\u002Fobject-array","docs\u002F2.auto-form\u002F3.object-array","嵌套对象与动态数组字段的渲染与增删。",{"title":5952,"path":5953,"stem":5954,"category":5872,"description":5955},"控件","\u002Fdocs\u002Fauto-form\u002Fcontrols","docs\u002F2.auto-form\u002F4.controls","通过 type 字段将 schema 映射到 Nuxt UI 控件，或注册、直接传入自定义 Vue 组件扩展表单字段。",{"title":5957,"path":5958,"stem":5959,"category":5872,"description":5960},"元数据与布局","\u002Fdocs\u002Fauto-form\u002Fmetadata-layout","docs\u002F2.auto-form\u002F5.metadata-layout","通过 meta 配置字段属性，并用 afz.layout 组织布局。",{"title":5962,"path":5963,"stem":5964,"category":5872,"description":5965},"插槽","\u002Fdocs\u002Fauto-form\u002Fslots","docs\u002F2.auto-form\u002F6.slots","通过具名插槽自定义 AutoForm 的头尾、字段控件、字段前后与布局内容。",{"title":5460,"path":5876,"stem":5879,"category":5872,"description":15},{"title":5968,"path":5969,"stem":5970,"category":5872,"description":5971},"SearchForm","\u002Fdocs\u002Fauto-form\u002Fsearch-form","docs\u002F2.auto-form\u002F8.search-form","Schema 驱动的可折叠搜索表单组件。",{"title":5973,"path":5974,"stem":5975,"category":5872,"description":5976},"useAutoForm","\u002Fdocs\u002Fauto-form\u002Fuse-auto-form","docs\u002F2.auto-form\u002F9.use-auto-form","用于创建类型化 Zod Schema 和管理 AutoForm 控件的 composable。",{"title":5978,"path":5979,"stem":5980,"children":5981,"category":5872,"description":5872,"icon":6014},"DataTable","\u002Fdocs\u002Fdata-table","docs\u002F3.data-table\u002F1.index",[5982,5984,5989,5994,5999,6004,6009],{"title":5893,"path":5979,"stem":5980,"category":5872,"description":5983},"基于 TanStack Table 的声明式数据表格，含列配置、选择、展开、树形、分页、加载更多与完整 API 参考。",{"title":5985,"path":5986,"stem":5987,"category":5872,"description":5988},"外观","\u002Fdocs\u002Fdata-table\u002Fappearance","docs\u002F3.data-table\u002F2.appearance","组件样式覆盖、分页样式覆盖、斑马纹与边框、视觉密度、内容自适应、空值占位与粘性表头。",{"title":5990,"path":5991,"stem":5992,"category":5872,"description":5993},"列配置","\u002Fdocs\u002Fdata-table\u002Fcolumns","docs\u002F3.data-table\u002F3.columns","数据列的固定、排序、列固定切换、列宽拖拽、文本截断、Tooltip、可见性与函数式配置。",{"title":5995,"path":5996,"stem":5997,"category":5872,"description":5998},"特殊列","\u002Fdocs\u002Fdata-table\u002Fspecial-columns","docs\u002F3.data-table\u002F4.special-columns","选择列、索引列、行固定列与操作列的配置，含树形选择策略、动态按钮与二次确认。",{"title":6000,"path":6001,"stem":6002,"category":5872,"description":6003},"行为与交互","\u002Fdocs\u002Fdata-table\u002Frows","docs\u002F3.data-table\u002F5.rows","行选择、展开详情、点击行为、动态行样式、悬停、右键菜单与编程式控制。",{"title":6005,"path":6006,"stem":6007,"category":5872,"description":6008},"树形数据","\u002Fdocs\u002Fdata-table\u002Ftree","docs\u002F3.data-table\u002F6.tree","通过 childrenKey 启用树形表格，配置展开、级联选择策略、缩进与选中结果读取。",{"title":6010,"path":6011,"stem":6012,"category":5872,"description":6013},"分页与加载更多","\u002Fdocs\u002Fdata-table\u002Fpagination","docs\u002F3.data-table\u002F7.pagination","客户端自动分页、服务端手动分页与加载状态，以及触底加载、无限滚动的实用参数。","i-lucide-table",{"title":5668,"path":6016,"stem":6017,"children":6018,"category":5872,"description":5872,"icon":6051},"\u002Fdocs\u002Fapi","docs\u002F4.api\u002F1.index",[6019,6022,6027,6032,6036,6041,6046],{"title":6020,"path":6016,"stem":6017,"category":5872,"description":6021},"概览","Nuxt 数据获取基础与 Movk Nuxt API 系统的核心概念和架构设计。",{"title":6023,"path":6024,"stem":6025,"category":5872,"description":6026},"$api","\u002Fdocs\u002Fapi\u002Fapi-plugin","docs\u002F4.api\u002F2.api-plugin","由 api.factory 插件创建的增强型 $fetch 实例，支持认证注入、数据解包、业务检查和多端点切换。",{"title":6028,"path":6029,"stem":6030,"category":5872,"description":6031},"hooks","\u002Fdocs\u002Fapi\u002Fhooks","docs\u002F4.api\u002F3.hooks","通过 Nuxt 运行时 Hook 扩展 API 系统行为，实现全局请求拦截、错误处理和 401 自定义处理。",{"title":5624,"path":6033,"stem":6034,"category":5872,"description":6035},"\u002Fdocs\u002Fapi\u002Fuse-api-fetch","docs\u002F4.api\u002F4.use-api-fetch","基于 Nuxt useFetch 封装的 API 请求 composable，提供自动认证、业务状态码检查和 Toast 提示。",{"title":6037,"path":6038,"stem":6039,"category":5872,"description":6040},"上传与下载","\u002Fdocs\u002Fapi\u002Fupload-download","docs\u002F4.api\u002F5.upload-download","带进度监控的文件上传与下载。",{"title":6042,"path":6043,"stem":6044,"category":5872,"description":6045},"流式请求","\u002Fdocs\u002Fapi\u002Fstream","docs\u002F4.api\u002F6.stream","SSE 流式请求与 AI SDK Chat Transport。",{"title":6047,"path":6048,"stem":6049,"category":5872,"description":6050},"API 架构设计","\u002Fdocs\u002Fapi\u002Farchitecture","docs\u002F4.api\u002F7.architecture","厘清 @movk\u002Fnuxt 的职责边界，用最小化分层组织直连后端、同源代理与最小化 BFF，并梳理两类 Auth 的完整闭环。","i-lucide-cloud",{"title":6053,"category":5872,"description":5872,"icon":6054,"path":6055,"stem":6056,"children":6057,"page":5874},"Components","i-lucide-box","\u002Fdocs\u002Fcomponents","docs\u002F5.components",[6058,6064,6070],{"title":6059,"path":6060,"stem":6061,"category":6062,"description":6063},"DatePicker","\u002Fdocs\u002Fcomponents\u002Fdate-picker","docs\u002F5.components\u002Fdate-picker","advanced","基于国际化标准的日期选择器组件。",{"title":6065,"path":6066,"stem":6067,"category":6068,"description":6069},"MessageBox","\u002Fdocs\u002Fcomponents\u002Fmessage-box","docs\u002F5.components\u002Fmessage-box","feedback","模态消息对话框，提供声明式与编程式两种调用方式。",{"title":6071,"path":6072,"stem":6073,"category":6062,"description":6074,"badge":6075},"Tree","\u002Fdocs\u002Fcomponents\u002Ftree","docs\u002F5.components\u002Ftree","基于 Nuxt UI Tree 的树形组件，补齐搜索、懒加载、工具栏、复选框与父子策略。","v1.4.2",{"data":6077,"body":6078},{},{"type":6,"children":6079},[6080],{"type":9,"tag":10,"props":6081,"children":6082},{},[6083,6085],{"type":14,"value":6084},"Copyright © 2025 - 2026 YiXuan - ",{"type":9,"tag":41,"props":6086,"children":6089},{"className":6087},[6088],"text-highlighted",[6090],{"type":14,"value":6091},"MIT License",[6093,6094],{"title":5962,"path":5963,"stem":5964,"description":5965,"children":-1},{"title":5968,"path":5969,"stem":5970,"description":5971,"children":-1},1795763779714,"237a5cff-9aba-4421-be98-81a239f14b62"]