[{"data":1,"prerenderedAt":8364,"buildId":8365},["ShallowReactive",2],{"-en-docs-api-upload-download-description":3,"component-example-composablesUseDownloadProgressBasicExample":16,"component-example-composablesUseDownloadProgressBasicExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":20,"component-example-composablesUseDownloadProgressChunkedExample":1069,"component-example-composablesUseDownloadProgressChunkedExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":1073,"component-example-composablesUseDownloadProgressCustomExample":1731,"component-example-composablesUseDownloadProgressCustomExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":1735,"component-example-composablesUseDownloadProgressPostExample":2426,"component-example-composablesUseDownloadProgressPostExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":2430,"component-example-composablesUseUploadProgressBasicExample":3174,"component-example-composablesUseUploadProgressBasicExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":3178,"component-example-composablesUseUploadProgressSingleExample":4397,"component-example-composablesUseUploadProgressSingleExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":4401,"component-example-composablesUseUploadProgressTimeoutExample":5337,"component-example-composablesUseUploadProgressTimeoutExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":5341,"docs--en-docs-api-upload-download":6194,"docs-navigation-en":8151,"mdc-d0lvp9-key":8345,"surround--en-docs-api-upload-download":8361},{"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","File upload and download with progress tracking.",{"code":17,"filePath":18,"pascalName":19},"\u003Cscript setup lang=\"ts\">\nconst STATUS = {\n  idle: { color: 'neutral', label: '空闲' },\n  pending: { color: 'info', label: '传输中' },\n  success: { color: 'success', label: '完成' },\n  error: { color: 'error', label: '失败' },\n  aborted: { color: 'warning', label: '已取消' }\n} as const\n\nconst basic = useDownloadWithProgress()\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex items-center gap-2\">\n      \u003CUButton\n        :loading=\"basic.status.value === 'pending'\"\n        icon=\"i-lucide-download\"\n        @click=\"basic.download('\u002Fdownload\u002Flarge')\"\n      >\n        开始下载\n      \u003C\u002FUButton>\n      \u003CUButton\n        v-if=\"basic.status.value === 'pending'\"\n        color=\"error\"\n        variant=\"soft\"\n        icon=\"i-lucide-x\"\n        @click=\"basic.abort\"\n      >\n        中止\n      \u003C\u002FUButton>\n      \u003CUBadge :color=\"STATUS[basic.status.value].color\" variant=\"subtle\">\n        {{ basic.progress.value ?? 0 }}% · {{ STATUS[basic.status.value].label }}\n      \u003C\u002FUBadge>\n    \u003C\u002Fdiv>\n    \u003CUProgress :model-value=\"basic.progress.value ?? undefined\" :max=\"100\" \u002F>\n    \u003CUAlert\n      v-if=\"basic.error.value\"\n      color=\"error\"\n      variant=\"subtle\"\n      :description=\"basic.error.value.message\"\n    \u002F>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fcomposables\u002Fuse-download-progress\u002FComposablesUseDownloadProgressBasicExample.vue","ComposablesUseDownloadProgressBasicExample",{"data":21,"body":23,"toc":1067},{"title":22,"description":22},"",{"type":6,"children":24},[25,1061],{"type":9,"tag":26,"props":27,"children":31},"pre",{"className":28,"code":29,"language":30,"meta":22,"style":22},"language-vue shiki shiki-themes github-light github-light github-dark","\u003Cscript setup lang=\"ts\">\nconst STATUS = {\n  idle: { color: 'neutral', label: '空闲' },\n  pending: { color: 'info', label: '传输中' },\n  success: { color: 'success', label: '完成' },\n  error: { color: 'error', label: '失败' },\n  aborted: { color: 'warning', label: '已取消' }\n} as const\n\nconst basic = useDownloadWithProgress()\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex items-center gap-2\">\n      \u003CUButton\n        :loading=\"basic.status.value === 'pending'\"\n        icon=\"i-lucide-download\"\n        @click=\"basic.download('\u002Fdownload\u002Flarge')\"\n      >\n        开始下载\n      \u003C\u002FUButton>\n      \u003CUButton\n        v-if=\"basic.status.value === 'pending'\"\n        color=\"error\"\n        variant=\"soft\"\n        icon=\"i-lucide-x\"\n        @click=\"basic.abort\"\n      >\n        中止\n      \u003C\u002FUButton>\n      \u003CUBadge :color=\"STATUS[basic.status.value].color\" variant=\"subtle\">\n        {{ basic.progress.value ?? 0 }}% · {{ STATUS[basic.status.value].label }}\n      \u003C\u002FUBadge>\n    \u003C\u002Fdiv>\n    \u003CUProgress :model-value=\"basic.progress.value ?? undefined\" :max=\"100\" \u002F>\n    \u003CUAlert\n      v-if=\"basic.error.value\"\n      color=\"error\"\n      variant=\"subtle\"\n      :description=\"basic.error.value.message\"\n    \u002F>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n","vue",[32],{"type":9,"tag":33,"props":34,"children":35},"code",{"__ignoreMap":22},[36,81,107,136,163,190,217,245,264,274,301,318,326,343,375,405,419,457,481,533,542,551,569,581,610,628,646,667,696,704,713,729,792,801,817,834,914,927,953,970,988,1019,1028,1045],{"type":9,"tag":37,"props":38,"children":41},"span",{"class":39,"line":40},"line",1,[42,48,54,60,65,70,76],{"type":9,"tag":37,"props":43,"children":45},{"style":44},"--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8",[46],{"type":14,"value":47},"\u003C",{"type":9,"tag":37,"props":49,"children":51},{"style":50},"--shiki-light:#22863A;--shiki-default:#22863A;--shiki-dark:#85E89D",[52],{"type":14,"value":53},"script",{"type":9,"tag":37,"props":55,"children":57},{"style":56},"--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#B392F0",[58],{"type":14,"value":59}," setup",{"type":9,"tag":37,"props":61,"children":62},{"style":56},[63],{"type":14,"value":64}," lang",{"type":9,"tag":37,"props":66,"children":67},{"style":44},[68],{"type":14,"value":69},"=",{"type":9,"tag":37,"props":71,"children":73},{"style":72},"--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#9ECBFF",[74],{"type":14,"value":75},"\"ts\"",{"type":9,"tag":37,"props":77,"children":78},{"style":44},[79],{"type":14,"value":80},">\n",{"type":9,"tag":37,"props":82,"children":84},{"class":39,"line":83},2,[85,91,97,102],{"type":9,"tag":37,"props":86,"children":88},{"style":87},"--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#F97583",[89],{"type":14,"value":90},"const",{"type":9,"tag":37,"props":92,"children":94},{"style":93},"--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF",[95],{"type":14,"value":96}," STATUS",{"type":9,"tag":37,"props":98,"children":99},{"style":87},[100],{"type":14,"value":101}," =",{"type":9,"tag":37,"props":103,"children":104},{"style":44},[105],{"type":14,"value":106}," {\n",{"type":9,"tag":37,"props":108,"children":110},{"class":39,"line":109},3,[111,116,121,126,131],{"type":9,"tag":37,"props":112,"children":113},{"style":44},[114],{"type":14,"value":115},"  idle: { color: ",{"type":9,"tag":37,"props":117,"children":118},{"style":72},[119],{"type":14,"value":120},"'neutral'",{"type":9,"tag":37,"props":122,"children":123},{"style":44},[124],{"type":14,"value":125},", label: ",{"type":9,"tag":37,"props":127,"children":128},{"style":72},[129],{"type":14,"value":130},"'空闲'",{"type":9,"tag":37,"props":132,"children":133},{"style":44},[134],{"type":14,"value":135}," },\n",{"type":9,"tag":37,"props":137,"children":139},{"class":39,"line":138},4,[140,145,150,154,159],{"type":9,"tag":37,"props":141,"children":142},{"style":44},[143],{"type":14,"value":144},"  pending: { color: ",{"type":9,"tag":37,"props":146,"children":147},{"style":72},[148],{"type":14,"value":149},"'info'",{"type":9,"tag":37,"props":151,"children":152},{"style":44},[153],{"type":14,"value":125},{"type":9,"tag":37,"props":155,"children":156},{"style":72},[157],{"type":14,"value":158},"'传输中'",{"type":9,"tag":37,"props":160,"children":161},{"style":44},[162],{"type":14,"value":135},{"type":9,"tag":37,"props":164,"children":166},{"class":39,"line":165},5,[167,172,177,181,186],{"type":9,"tag":37,"props":168,"children":169},{"style":44},[170],{"type":14,"value":171},"  success: { color: ",{"type":9,"tag":37,"props":173,"children":174},{"style":72},[175],{"type":14,"value":176},"'success'",{"type":9,"tag":37,"props":178,"children":179},{"style":44},[180],{"type":14,"value":125},{"type":9,"tag":37,"props":182,"children":183},{"style":72},[184],{"type":14,"value":185},"'完成'",{"type":9,"tag":37,"props":187,"children":188},{"style":44},[189],{"type":14,"value":135},{"type":9,"tag":37,"props":191,"children":193},{"class":39,"line":192},6,[194,199,204,208,213],{"type":9,"tag":37,"props":195,"children":196},{"style":44},[197],{"type":14,"value":198},"  error: { color: ",{"type":9,"tag":37,"props":200,"children":201},{"style":72},[202],{"type":14,"value":203},"'error'",{"type":9,"tag":37,"props":205,"children":206},{"style":44},[207],{"type":14,"value":125},{"type":9,"tag":37,"props":209,"children":210},{"style":72},[211],{"type":14,"value":212},"'失败'",{"type":9,"tag":37,"props":214,"children":215},{"style":44},[216],{"type":14,"value":135},{"type":9,"tag":37,"props":218,"children":220},{"class":39,"line":219},7,[221,226,231,235,240],{"type":9,"tag":37,"props":222,"children":223},{"style":44},[224],{"type":14,"value":225},"  aborted: { color: ",{"type":9,"tag":37,"props":227,"children":228},{"style":72},[229],{"type":14,"value":230},"'warning'",{"type":9,"tag":37,"props":232,"children":233},{"style":44},[234],{"type":14,"value":125},{"type":9,"tag":37,"props":236,"children":237},{"style":72},[238],{"type":14,"value":239},"'已取消'",{"type":9,"tag":37,"props":241,"children":242},{"style":44},[243],{"type":14,"value":244}," }\n",{"type":9,"tag":37,"props":246,"children":248},{"class":39,"line":247},8,[249,254,259],{"type":9,"tag":37,"props":250,"children":251},{"style":44},[252],{"type":14,"value":253},"} ",{"type":9,"tag":37,"props":255,"children":256},{"style":87},[257],{"type":14,"value":258},"as",{"type":9,"tag":37,"props":260,"children":261},{"style":87},[262],{"type":14,"value":263}," const\n",{"type":9,"tag":37,"props":265,"children":267},{"class":39,"line":266},9,[268],{"type":9,"tag":37,"props":269,"children":271},{"emptyLinePlaceholder":270},true,[272],{"type":14,"value":273},"\n",{"type":9,"tag":37,"props":275,"children":277},{"class":39,"line":276},10,[278,282,287,291,296],{"type":9,"tag":37,"props":279,"children":280},{"style":87},[281],{"type":14,"value":90},{"type":9,"tag":37,"props":283,"children":284},{"style":93},[285],{"type":14,"value":286}," basic",{"type":9,"tag":37,"props":288,"children":289},{"style":87},[290],{"type":14,"value":101},{"type":9,"tag":37,"props":292,"children":293},{"style":56},[294],{"type":14,"value":295}," useDownloadWithProgress",{"type":9,"tag":37,"props":297,"children":298},{"style":44},[299],{"type":14,"value":300},"()\n",{"type":9,"tag":37,"props":302,"children":304},{"class":39,"line":303},11,[305,310,314],{"type":9,"tag":37,"props":306,"children":307},{"style":44},[308],{"type":14,"value":309},"\u003C\u002F",{"type":9,"tag":37,"props":311,"children":312},{"style":50},[313],{"type":14,"value":53},{"type":9,"tag":37,"props":315,"children":316},{"style":44},[317],{"type":14,"value":80},{"type":9,"tag":37,"props":319,"children":321},{"class":39,"line":320},12,[322],{"type":9,"tag":37,"props":323,"children":324},{"emptyLinePlaceholder":270},[325],{"type":14,"value":273},{"type":9,"tag":37,"props":327,"children":329},{"class":39,"line":328},13,[330,334,339],{"type":9,"tag":37,"props":331,"children":332},{"style":44},[333],{"type":14,"value":47},{"type":9,"tag":37,"props":335,"children":336},{"style":50},[337],{"type":14,"value":338},"template",{"type":9,"tag":37,"props":340,"children":341},{"style":44},[342],{"type":14,"value":80},{"type":9,"tag":37,"props":344,"children":346},{"class":39,"line":345},14,[347,352,357,362,366,371],{"type":9,"tag":37,"props":348,"children":349},{"style":44},[350],{"type":14,"value":351},"  \u003C",{"type":9,"tag":37,"props":353,"children":354},{"style":50},[355],{"type":14,"value":356},"div",{"type":9,"tag":37,"props":358,"children":359},{"style":56},[360],{"type":14,"value":361}," class",{"type":9,"tag":37,"props":363,"children":364},{"style":44},[365],{"type":14,"value":69},{"type":9,"tag":37,"props":367,"children":368},{"style":72},[369],{"type":14,"value":370},"\"flex flex-col gap-3\"",{"type":9,"tag":37,"props":372,"children":373},{"style":44},[374],{"type":14,"value":80},{"type":9,"tag":37,"props":376,"children":378},{"class":39,"line":377},15,[379,384,388,392,396,401],{"type":9,"tag":37,"props":380,"children":381},{"style":44},[382],{"type":14,"value":383},"    \u003C",{"type":9,"tag":37,"props":385,"children":386},{"style":50},[387],{"type":14,"value":356},{"type":9,"tag":37,"props":389,"children":390},{"style":56},[391],{"type":14,"value":361},{"type":9,"tag":37,"props":393,"children":394},{"style":44},[395],{"type":14,"value":69},{"type":9,"tag":37,"props":397,"children":398},{"style":72},[399],{"type":14,"value":400},"\"flex items-center gap-2\"",{"type":9,"tag":37,"props":402,"children":403},{"style":44},[404],{"type":14,"value":80},{"type":9,"tag":37,"props":406,"children":408},{"class":39,"line":407},16,[409,414],{"type":9,"tag":37,"props":410,"children":411},{"style":44},[412],{"type":14,"value":413},"      \u003C",{"type":9,"tag":37,"props":415,"children":416},{"style":50},[417],{"type":14,"value":418},"UButton\n",{"type":9,"tag":37,"props":420,"children":422},{"class":39,"line":421},17,[423,428,433,437,442,447,452],{"type":9,"tag":37,"props":424,"children":425},{"style":44},[426],{"type":14,"value":427},"        :",{"type":9,"tag":37,"props":429,"children":430},{"style":56},[431],{"type":14,"value":432},"loading",{"type":9,"tag":37,"props":434,"children":435},{"style":44},[436],{"type":14,"value":69},{"type":9,"tag":37,"props":438,"children":439},{"style":72},[440],{"type":14,"value":441},"\"",{"type":9,"tag":37,"props":443,"children":444},{"style":44},[445],{"type":14,"value":446},"basic.status.value ",{"type":9,"tag":37,"props":448,"children":449},{"style":87},[450],{"type":14,"value":451},"===",{"type":9,"tag":37,"props":453,"children":454},{"style":72},[455],{"type":14,"value":456}," 'pending'\"\n",{"type":9,"tag":37,"props":458,"children":460},{"class":39,"line":459},18,[461,466,470],{"type":9,"tag":37,"props":462,"children":463},{"style":56},[464],{"type":14,"value":465},"        icon",{"type":9,"tag":37,"props":467,"children":468},{"style":44},[469],{"type":14,"value":69},{"type":9,"tag":37,"props":471,"children":472},{"style":72},[473,479],{"type":9,"tag":474,"props":475,"children":478},"i",{"class":476,"style":477},"shiki-icon-highlight","--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Fdownload.svg?color=%23000)",[],{"type":14,"value":480},"\"i-lucide-download\"\n",{"type":9,"tag":37,"props":482,"children":484},{"class":39,"line":483},19,[485,490,495,499,503,508,513,518,523,528],{"type":9,"tag":37,"props":486,"children":487},{"style":44},[488],{"type":14,"value":489},"        @",{"type":9,"tag":37,"props":491,"children":492},{"style":56},[493],{"type":14,"value":494},"click",{"type":9,"tag":37,"props":496,"children":497},{"style":44},[498],{"type":14,"value":69},{"type":9,"tag":37,"props":500,"children":501},{"style":72},[502],{"type":14,"value":441},{"type":9,"tag":37,"props":504,"children":505},{"style":44},[506],{"type":14,"value":507},"basic.",{"type":9,"tag":37,"props":509,"children":510},{"style":56},[511],{"type":14,"value":512},"download",{"type":9,"tag":37,"props":514,"children":515},{"style":44},[516],{"type":14,"value":517},"(",{"type":9,"tag":37,"props":519,"children":520},{"style":72},[521],{"type":14,"value":522},"'\u002Fdownload\u002Flarge'",{"type":9,"tag":37,"props":524,"children":525},{"style":44},[526],{"type":14,"value":527},")",{"type":9,"tag":37,"props":529,"children":530},{"style":72},[531],{"type":14,"value":532},"\"\n",{"type":9,"tag":37,"props":534,"children":536},{"class":39,"line":535},20,[537],{"type":9,"tag":37,"props":538,"children":539},{"style":44},[540],{"type":14,"value":541},"      >\n",{"type":9,"tag":37,"props":543,"children":545},{"class":39,"line":544},21,[546],{"type":9,"tag":37,"props":547,"children":548},{"style":44},[549],{"type":14,"value":550},"        开始下载\n",{"type":9,"tag":37,"props":552,"children":554},{"class":39,"line":553},22,[555,560,565],{"type":9,"tag":37,"props":556,"children":557},{"style":44},[558],{"type":14,"value":559},"      \u003C\u002F",{"type":9,"tag":37,"props":561,"children":562},{"style":50},[563],{"type":14,"value":564},"UButton",{"type":9,"tag":37,"props":566,"children":567},{"style":44},[568],{"type":14,"value":80},{"type":9,"tag":37,"props":570,"children":572},{"class":39,"line":571},23,[573,577],{"type":9,"tag":37,"props":574,"children":575},{"style":44},[576],{"type":14,"value":413},{"type":9,"tag":37,"props":578,"children":579},{"style":50},[580],{"type":14,"value":418},{"type":9,"tag":37,"props":582,"children":584},{"class":39,"line":583},24,[585,590,594,598,602,606],{"type":9,"tag":37,"props":586,"children":587},{"style":87},[588],{"type":14,"value":589},"        v-if",{"type":9,"tag":37,"props":591,"children":592},{"style":44},[593],{"type":14,"value":69},{"type":9,"tag":37,"props":595,"children":596},{"style":72},[597],{"type":14,"value":441},{"type":9,"tag":37,"props":599,"children":600},{"style":44},[601],{"type":14,"value":446},{"type":9,"tag":37,"props":603,"children":604},{"style":87},[605],{"type":14,"value":451},{"type":9,"tag":37,"props":607,"children":608},{"style":72},[609],{"type":14,"value":456},{"type":9,"tag":37,"props":611,"children":613},{"class":39,"line":612},25,[614,619,623],{"type":9,"tag":37,"props":615,"children":616},{"style":56},[617],{"type":14,"value":618},"        color",{"type":9,"tag":37,"props":620,"children":621},{"style":44},[622],{"type":14,"value":69},{"type":9,"tag":37,"props":624,"children":625},{"style":72},[626],{"type":14,"value":627},"\"error\"\n",{"type":9,"tag":37,"props":629,"children":631},{"class":39,"line":630},26,[632,637,641],{"type":9,"tag":37,"props":633,"children":634},{"style":56},[635],{"type":14,"value":636},"        variant",{"type":9,"tag":37,"props":638,"children":639},{"style":44},[640],{"type":14,"value":69},{"type":9,"tag":37,"props":642,"children":643},{"style":72},[644],{"type":14,"value":645},"\"soft\"\n",{"type":9,"tag":37,"props":647,"children":649},{"class":39,"line":648},27,[650,654,658],{"type":9,"tag":37,"props":651,"children":652},{"style":56},[653],{"type":14,"value":465},{"type":9,"tag":37,"props":655,"children":656},{"style":44},[657],{"type":14,"value":69},{"type":9,"tag":37,"props":659,"children":660},{"style":72},[661,665],{"type":9,"tag":474,"props":662,"children":664},{"class":476,"style":663},"--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Fx.svg?color=%23000)",[],{"type":14,"value":666},"\"i-lucide-x\"\n",{"type":9,"tag":37,"props":668,"children":670},{"class":39,"line":669},28,[671,675,679,683,687,692],{"type":9,"tag":37,"props":672,"children":673},{"style":44},[674],{"type":14,"value":489},{"type":9,"tag":37,"props":676,"children":677},{"style":56},[678],{"type":14,"value":494},{"type":9,"tag":37,"props":680,"children":681},{"style":44},[682],{"type":14,"value":69},{"type":9,"tag":37,"props":684,"children":685},{"style":72},[686],{"type":14,"value":441},{"type":9,"tag":37,"props":688,"children":689},{"style":44},[690],{"type":14,"value":691},"basic.abort",{"type":9,"tag":37,"props":693,"children":694},{"style":72},[695],{"type":14,"value":532},{"type":9,"tag":37,"props":697,"children":699},{"class":39,"line":698},29,[700],{"type":9,"tag":37,"props":701,"children":702},{"style":44},[703],{"type":14,"value":541},{"type":9,"tag":37,"props":705,"children":707},{"class":39,"line":706},30,[708],{"type":9,"tag":37,"props":709,"children":710},{"style":44},[711],{"type":14,"value":712},"        中止\n",{"type":9,"tag":37,"props":714,"children":716},{"class":39,"line":715},31,[717,721,725],{"type":9,"tag":37,"props":718,"children":719},{"style":44},[720],{"type":14,"value":559},{"type":9,"tag":37,"props":722,"children":723},{"style":50},[724],{"type":14,"value":564},{"type":9,"tag":37,"props":726,"children":727},{"style":44},[728],{"type":14,"value":80},{"type":9,"tag":37,"props":730,"children":732},{"class":39,"line":731},32,[733,737,742,747,752,756,760,765,770,774,779,783,788],{"type":9,"tag":37,"props":734,"children":735},{"style":44},[736],{"type":14,"value":413},{"type":9,"tag":37,"props":738,"children":739},{"style":50},[740],{"type":14,"value":741},"UBadge",{"type":9,"tag":37,"props":743,"children":744},{"style":44},[745],{"type":14,"value":746}," :",{"type":9,"tag":37,"props":748,"children":749},{"style":56},[750],{"type":14,"value":751},"color",{"type":9,"tag":37,"props":753,"children":754},{"style":44},[755],{"type":14,"value":69},{"type":9,"tag":37,"props":757,"children":758},{"style":72},[759],{"type":14,"value":441},{"type":9,"tag":37,"props":761,"children":762},{"style":93},[763],{"type":14,"value":764},"STATUS",{"type":9,"tag":37,"props":766,"children":767},{"style":44},[768],{"type":14,"value":769},"[basic.status.value].color",{"type":9,"tag":37,"props":771,"children":772},{"style":72},[773],{"type":14,"value":441},{"type":9,"tag":37,"props":775,"children":776},{"style":56},[777],{"type":14,"value":778}," variant",{"type":9,"tag":37,"props":780,"children":781},{"style":44},[782],{"type":14,"value":69},{"type":9,"tag":37,"props":784,"children":785},{"style":72},[786],{"type":14,"value":787},"\"subtle\"",{"type":9,"tag":37,"props":789,"children":790},{"style":44},[791],{"type":14,"value":80},{"type":9,"tag":37,"props":793,"children":795},{"class":39,"line":794},33,[796],{"type":9,"tag":37,"props":797,"children":798},{"style":44},[799],{"type":14,"value":800},"        {{ basic.progress.value ?? 0 }}% · {{ STATUS[basic.status.value].label }}\n",{"type":9,"tag":37,"props":802,"children":804},{"class":39,"line":803},34,[805,809,813],{"type":9,"tag":37,"props":806,"children":807},{"style":44},[808],{"type":14,"value":559},{"type":9,"tag":37,"props":810,"children":811},{"style":50},[812],{"type":14,"value":741},{"type":9,"tag":37,"props":814,"children":815},{"style":44},[816],{"type":14,"value":80},{"type":9,"tag":37,"props":818,"children":820},{"class":39,"line":819},35,[821,826,830],{"type":9,"tag":37,"props":822,"children":823},{"style":44},[824],{"type":14,"value":825},"    \u003C\u002F",{"type":9,"tag":37,"props":827,"children":828},{"style":50},[829],{"type":14,"value":356},{"type":9,"tag":37,"props":831,"children":832},{"style":44},[833],{"type":14,"value":80},{"type":9,"tag":37,"props":835,"children":837},{"class":39,"line":836},36,[838,842,847,851,856,860,864,869,874,879,883,887,892,896,900,905,909],{"type":9,"tag":37,"props":839,"children":840},{"style":44},[841],{"type":14,"value":383},{"type":9,"tag":37,"props":843,"children":844},{"style":50},[845],{"type":14,"value":846},"UProgress",{"type":9,"tag":37,"props":848,"children":849},{"style":44},[850],{"type":14,"value":746},{"type":9,"tag":37,"props":852,"children":853},{"style":56},[854],{"type":14,"value":855},"model-value",{"type":9,"tag":37,"props":857,"children":858},{"style":44},[859],{"type":14,"value":69},{"type":9,"tag":37,"props":861,"children":862},{"style":72},[863],{"type":14,"value":441},{"type":9,"tag":37,"props":865,"children":866},{"style":44},[867],{"type":14,"value":868},"basic.progress.value ",{"type":9,"tag":37,"props":870,"children":871},{"style":87},[872],{"type":14,"value":873},"??",{"type":9,"tag":37,"props":875,"children":876},{"style":93},[877],{"type":14,"value":878}," undefined",{"type":9,"tag":37,"props":880,"children":881},{"style":72},[882],{"type":14,"value":441},{"type":9,"tag":37,"props":884,"children":885},{"style":44},[886],{"type":14,"value":746},{"type":9,"tag":37,"props":888,"children":889},{"style":56},[890],{"type":14,"value":891},"max",{"type":9,"tag":37,"props":893,"children":894},{"style":44},[895],{"type":14,"value":69},{"type":9,"tag":37,"props":897,"children":898},{"style":72},[899],{"type":14,"value":441},{"type":9,"tag":37,"props":901,"children":902},{"style":93},[903],{"type":14,"value":904},"100",{"type":9,"tag":37,"props":906,"children":907},{"style":72},[908],{"type":14,"value":441},{"type":9,"tag":37,"props":910,"children":911},{"style":44},[912],{"type":14,"value":913}," \u002F>\n",{"type":9,"tag":37,"props":915,"children":917},{"class":39,"line":916},37,[918,922],{"type":9,"tag":37,"props":919,"children":920},{"style":44},[921],{"type":14,"value":383},{"type":9,"tag":37,"props":923,"children":924},{"style":50},[925],{"type":14,"value":926},"UAlert\n",{"type":9,"tag":37,"props":928,"children":930},{"class":39,"line":929},38,[931,936,940,944,949],{"type":9,"tag":37,"props":932,"children":933},{"style":87},[934],{"type":14,"value":935},"      v-if",{"type":9,"tag":37,"props":937,"children":938},{"style":44},[939],{"type":14,"value":69},{"type":9,"tag":37,"props":941,"children":942},{"style":72},[943],{"type":14,"value":441},{"type":9,"tag":37,"props":945,"children":946},{"style":44},[947],{"type":14,"value":948},"basic.error.value",{"type":9,"tag":37,"props":950,"children":951},{"style":72},[952],{"type":14,"value":532},{"type":9,"tag":37,"props":954,"children":956},{"class":39,"line":955},39,[957,962,966],{"type":9,"tag":37,"props":958,"children":959},{"style":56},[960],{"type":14,"value":961},"      color",{"type":9,"tag":37,"props":963,"children":964},{"style":44},[965],{"type":14,"value":69},{"type":9,"tag":37,"props":967,"children":968},{"style":72},[969],{"type":14,"value":627},{"type":9,"tag":37,"props":971,"children":973},{"class":39,"line":972},40,[974,979,983],{"type":9,"tag":37,"props":975,"children":976},{"style":56},[977],{"type":14,"value":978},"      variant",{"type":9,"tag":37,"props":980,"children":981},{"style":44},[982],{"type":14,"value":69},{"type":9,"tag":37,"props":984,"children":985},{"style":72},[986],{"type":14,"value":987},"\"subtle\"\n",{"type":9,"tag":37,"props":989,"children":991},{"class":39,"line":990},41,[992,997,1002,1006,1010,1015],{"type":9,"tag":37,"props":993,"children":994},{"style":44},[995],{"type":14,"value":996},"      :",{"type":9,"tag":37,"props":998,"children":999},{"style":56},[1000],{"type":14,"value":1001},"description",{"type":9,"tag":37,"props":1003,"children":1004},{"style":44},[1005],{"type":14,"value":69},{"type":9,"tag":37,"props":1007,"children":1008},{"style":72},[1009],{"type":14,"value":441},{"type":9,"tag":37,"props":1011,"children":1012},{"style":44},[1013],{"type":14,"value":1014},"basic.error.value.message",{"type":9,"tag":37,"props":1016,"children":1017},{"style":72},[1018],{"type":14,"value":532},{"type":9,"tag":37,"props":1020,"children":1022},{"class":39,"line":1021},42,[1023],{"type":9,"tag":37,"props":1024,"children":1025},{"style":44},[1026],{"type":14,"value":1027},"    \u002F>\n",{"type":9,"tag":37,"props":1029,"children":1031},{"class":39,"line":1030},43,[1032,1037,1041],{"type":9,"tag":37,"props":1033,"children":1034},{"style":44},[1035],{"type":14,"value":1036},"  \u003C\u002F",{"type":9,"tag":37,"props":1038,"children":1039},{"style":50},[1040],{"type":14,"value":356},{"type":9,"tag":37,"props":1042,"children":1043},{"style":44},[1044],{"type":14,"value":80},{"type":9,"tag":37,"props":1046,"children":1048},{"class":39,"line":1047},44,[1049,1053,1057],{"type":9,"tag":37,"props":1050,"children":1051},{"style":44},[1052],{"type":14,"value":309},{"type":9,"tag":37,"props":1054,"children":1055},{"style":50},[1056],{"type":14,"value":338},{"type":9,"tag":37,"props":1058,"children":1059},{"style":44},[1060],{"type":14,"value":80},{"type":9,"tag":1062,"props":1063,"children":1064},"style",{},[1065],{"type":14,"value":1066},"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":83,"depth":83,"links":1068},[],{"code":1070,"filePath":1071,"pascalName":1072},"\u003Cscript setup lang=\"ts\">\nconst STATUS = {\n  idle: { color: 'neutral', label: '空闲' },\n  pending: { color: 'info', label: '传输中' },\n  success: { color: 'success', label: '完成' },\n  error: { color: 'error', label: '失败' },\n  aborted: { color: 'warning', label: '已取消' }\n} as const\n\nconst chunked = useDownloadWithProgress()\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex items-center gap-2\">\n      \u003CUButton\n        :loading=\"chunked.status.value === 'pending'\"\n        icon=\"i-lucide-download\"\n        @click=\"chunked.download('\u002Fdownload\u002Fchunked')\"\n      >\n        开始下载\n      \u003C\u002FUButton>\n      \u003CUBadge :color=\"STATUS[chunked.status.value].color\" variant=\"subtle\">\n        {{ chunked.progress.value === null ? '不确定' : `${chunked.progress.value}%` }}\n        · {{ STATUS[chunked.status.value].label }}\n      \u003C\u002FUBadge>\n    \u003C\u002Fdiv>\n    \u003CUProgress :model-value=\"chunked.progress.value ?? undefined\" :max=\"100\" \u002F>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fcomposables\u002Fuse-download-progress\u002FComposablesUseDownloadProgressChunkedExample.vue","ComposablesUseDownloadProgressChunkedExample",{"data":1074,"body":1075,"toc":1729},{"title":22,"description":22},{"type":6,"children":1076},[1077,1725],{"type":9,"tag":26,"props":1078,"children":1080},{"className":28,"code":1079,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nconst STATUS = {\n  idle: { color: 'neutral', label: '空闲' },\n  pending: { color: 'info', label: '传输中' },\n  success: { color: 'success', label: '完成' },\n  error: { color: 'error', label: '失败' },\n  aborted: { color: 'warning', label: '已取消' }\n} as const\n\nconst chunked = useDownloadWithProgress()\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex items-center gap-2\">\n      \u003CUButton\n        :loading=\"chunked.status.value === 'pending'\"\n        icon=\"i-lucide-download\"\n        @click=\"chunked.download('\u002Fdownload\u002Fchunked')\"\n      >\n        开始下载\n      \u003C\u002FUButton>\n      \u003CUBadge :color=\"STATUS[chunked.status.value].color\" variant=\"subtle\">\n        {{ chunked.progress.value === null ? '不确定' : `${chunked.progress.value}%` }}\n        · {{ STATUS[chunked.status.value].label }}\n      \u003C\u002FUBadge>\n    \u003C\u002Fdiv>\n    \u003CUProgress :model-value=\"chunked.progress.value ?? undefined\" :max=\"100\" \u002F>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[1081],{"type":9,"tag":33,"props":1082,"children":1083},{"__ignoreMap":22},[1084,1115,1134,1157,1180,1203,1226,1249,1264,1271,1295,1310,1317,1332,1359,1386,1397,1429,1447,1492,1499,1506,1521,1577,1585,1593,1608,1623,1695,1710],{"type":9,"tag":37,"props":1085,"children":1086},{"class":39,"line":40},[1087,1091,1095,1099,1103,1107,1111],{"type":9,"tag":37,"props":1088,"children":1089},{"style":44},[1090],{"type":14,"value":47},{"type":9,"tag":37,"props":1092,"children":1093},{"style":50},[1094],{"type":14,"value":53},{"type":9,"tag":37,"props":1096,"children":1097},{"style":56},[1098],{"type":14,"value":59},{"type":9,"tag":37,"props":1100,"children":1101},{"style":56},[1102],{"type":14,"value":64},{"type":9,"tag":37,"props":1104,"children":1105},{"style":44},[1106],{"type":14,"value":69},{"type":9,"tag":37,"props":1108,"children":1109},{"style":72},[1110],{"type":14,"value":75},{"type":9,"tag":37,"props":1112,"children":1113},{"style":44},[1114],{"type":14,"value":80},{"type":9,"tag":37,"props":1116,"children":1117},{"class":39,"line":83},[1118,1122,1126,1130],{"type":9,"tag":37,"props":1119,"children":1120},{"style":87},[1121],{"type":14,"value":90},{"type":9,"tag":37,"props":1123,"children":1124},{"style":93},[1125],{"type":14,"value":96},{"type":9,"tag":37,"props":1127,"children":1128},{"style":87},[1129],{"type":14,"value":101},{"type":9,"tag":37,"props":1131,"children":1132},{"style":44},[1133],{"type":14,"value":106},{"type":9,"tag":37,"props":1135,"children":1136},{"class":39,"line":109},[1137,1141,1145,1149,1153],{"type":9,"tag":37,"props":1138,"children":1139},{"style":44},[1140],{"type":14,"value":115},{"type":9,"tag":37,"props":1142,"children":1143},{"style":72},[1144],{"type":14,"value":120},{"type":9,"tag":37,"props":1146,"children":1147},{"style":44},[1148],{"type":14,"value":125},{"type":9,"tag":37,"props":1150,"children":1151},{"style":72},[1152],{"type":14,"value":130},{"type":9,"tag":37,"props":1154,"children":1155},{"style":44},[1156],{"type":14,"value":135},{"type":9,"tag":37,"props":1158,"children":1159},{"class":39,"line":138},[1160,1164,1168,1172,1176],{"type":9,"tag":37,"props":1161,"children":1162},{"style":44},[1163],{"type":14,"value":144},{"type":9,"tag":37,"props":1165,"children":1166},{"style":72},[1167],{"type":14,"value":149},{"type":9,"tag":37,"props":1169,"children":1170},{"style":44},[1171],{"type":14,"value":125},{"type":9,"tag":37,"props":1173,"children":1174},{"style":72},[1175],{"type":14,"value":158},{"type":9,"tag":37,"props":1177,"children":1178},{"style":44},[1179],{"type":14,"value":135},{"type":9,"tag":37,"props":1181,"children":1182},{"class":39,"line":165},[1183,1187,1191,1195,1199],{"type":9,"tag":37,"props":1184,"children":1185},{"style":44},[1186],{"type":14,"value":171},{"type":9,"tag":37,"props":1188,"children":1189},{"style":72},[1190],{"type":14,"value":176},{"type":9,"tag":37,"props":1192,"children":1193},{"style":44},[1194],{"type":14,"value":125},{"type":9,"tag":37,"props":1196,"children":1197},{"style":72},[1198],{"type":14,"value":185},{"type":9,"tag":37,"props":1200,"children":1201},{"style":44},[1202],{"type":14,"value":135},{"type":9,"tag":37,"props":1204,"children":1205},{"class":39,"line":192},[1206,1210,1214,1218,1222],{"type":9,"tag":37,"props":1207,"children":1208},{"style":44},[1209],{"type":14,"value":198},{"type":9,"tag":37,"props":1211,"children":1212},{"style":72},[1213],{"type":14,"value":203},{"type":9,"tag":37,"props":1215,"children":1216},{"style":44},[1217],{"type":14,"value":125},{"type":9,"tag":37,"props":1219,"children":1220},{"style":72},[1221],{"type":14,"value":212},{"type":9,"tag":37,"props":1223,"children":1224},{"style":44},[1225],{"type":14,"value":135},{"type":9,"tag":37,"props":1227,"children":1228},{"class":39,"line":219},[1229,1233,1237,1241,1245],{"type":9,"tag":37,"props":1230,"children":1231},{"style":44},[1232],{"type":14,"value":225},{"type":9,"tag":37,"props":1234,"children":1235},{"style":72},[1236],{"type":14,"value":230},{"type":9,"tag":37,"props":1238,"children":1239},{"style":44},[1240],{"type":14,"value":125},{"type":9,"tag":37,"props":1242,"children":1243},{"style":72},[1244],{"type":14,"value":239},{"type":9,"tag":37,"props":1246,"children":1247},{"style":44},[1248],{"type":14,"value":244},{"type":9,"tag":37,"props":1250,"children":1251},{"class":39,"line":247},[1252,1256,1260],{"type":9,"tag":37,"props":1253,"children":1254},{"style":44},[1255],{"type":14,"value":253},{"type":9,"tag":37,"props":1257,"children":1258},{"style":87},[1259],{"type":14,"value":258},{"type":9,"tag":37,"props":1261,"children":1262},{"style":87},[1263],{"type":14,"value":263},{"type":9,"tag":37,"props":1265,"children":1266},{"class":39,"line":266},[1267],{"type":9,"tag":37,"props":1268,"children":1269},{"emptyLinePlaceholder":270},[1270],{"type":14,"value":273},{"type":9,"tag":37,"props":1272,"children":1273},{"class":39,"line":276},[1274,1278,1283,1287,1291],{"type":9,"tag":37,"props":1275,"children":1276},{"style":87},[1277],{"type":14,"value":90},{"type":9,"tag":37,"props":1279,"children":1280},{"style":93},[1281],{"type":14,"value":1282}," chunked",{"type":9,"tag":37,"props":1284,"children":1285},{"style":87},[1286],{"type":14,"value":101},{"type":9,"tag":37,"props":1288,"children":1289},{"style":56},[1290],{"type":14,"value":295},{"type":9,"tag":37,"props":1292,"children":1293},{"style":44},[1294],{"type":14,"value":300},{"type":9,"tag":37,"props":1296,"children":1297},{"class":39,"line":303},[1298,1302,1306],{"type":9,"tag":37,"props":1299,"children":1300},{"style":44},[1301],{"type":14,"value":309},{"type":9,"tag":37,"props":1303,"children":1304},{"style":50},[1305],{"type":14,"value":53},{"type":9,"tag":37,"props":1307,"children":1308},{"style":44},[1309],{"type":14,"value":80},{"type":9,"tag":37,"props":1311,"children":1312},{"class":39,"line":320},[1313],{"type":9,"tag":37,"props":1314,"children":1315},{"emptyLinePlaceholder":270},[1316],{"type":14,"value":273},{"type":9,"tag":37,"props":1318,"children":1319},{"class":39,"line":328},[1320,1324,1328],{"type":9,"tag":37,"props":1321,"children":1322},{"style":44},[1323],{"type":14,"value":47},{"type":9,"tag":37,"props":1325,"children":1326},{"style":50},[1327],{"type":14,"value":338},{"type":9,"tag":37,"props":1329,"children":1330},{"style":44},[1331],{"type":14,"value":80},{"type":9,"tag":37,"props":1333,"children":1334},{"class":39,"line":345},[1335,1339,1343,1347,1351,1355],{"type":9,"tag":37,"props":1336,"children":1337},{"style":44},[1338],{"type":14,"value":351},{"type":9,"tag":37,"props":1340,"children":1341},{"style":50},[1342],{"type":14,"value":356},{"type":9,"tag":37,"props":1344,"children":1345},{"style":56},[1346],{"type":14,"value":361},{"type":9,"tag":37,"props":1348,"children":1349},{"style":44},[1350],{"type":14,"value":69},{"type":9,"tag":37,"props":1352,"children":1353},{"style":72},[1354],{"type":14,"value":370},{"type":9,"tag":37,"props":1356,"children":1357},{"style":44},[1358],{"type":14,"value":80},{"type":9,"tag":37,"props":1360,"children":1361},{"class":39,"line":377},[1362,1366,1370,1374,1378,1382],{"type":9,"tag":37,"props":1363,"children":1364},{"style":44},[1365],{"type":14,"value":383},{"type":9,"tag":37,"props":1367,"children":1368},{"style":50},[1369],{"type":14,"value":356},{"type":9,"tag":37,"props":1371,"children":1372},{"style":56},[1373],{"type":14,"value":361},{"type":9,"tag":37,"props":1375,"children":1376},{"style":44},[1377],{"type":14,"value":69},{"type":9,"tag":37,"props":1379,"children":1380},{"style":72},[1381],{"type":14,"value":400},{"type":9,"tag":37,"props":1383,"children":1384},{"style":44},[1385],{"type":14,"value":80},{"type":9,"tag":37,"props":1387,"children":1388},{"class":39,"line":407},[1389,1393],{"type":9,"tag":37,"props":1390,"children":1391},{"style":44},[1392],{"type":14,"value":413},{"type":9,"tag":37,"props":1394,"children":1395},{"style":50},[1396],{"type":14,"value":418},{"type":9,"tag":37,"props":1398,"children":1399},{"class":39,"line":421},[1400,1404,1408,1412,1416,1421,1425],{"type":9,"tag":37,"props":1401,"children":1402},{"style":44},[1403],{"type":14,"value":427},{"type":9,"tag":37,"props":1405,"children":1406},{"style":56},[1407],{"type":14,"value":432},{"type":9,"tag":37,"props":1409,"children":1410},{"style":44},[1411],{"type":14,"value":69},{"type":9,"tag":37,"props":1413,"children":1414},{"style":72},[1415],{"type":14,"value":441},{"type":9,"tag":37,"props":1417,"children":1418},{"style":44},[1419],{"type":14,"value":1420},"chunked.status.value ",{"type":9,"tag":37,"props":1422,"children":1423},{"style":87},[1424],{"type":14,"value":451},{"type":9,"tag":37,"props":1426,"children":1427},{"style":72},[1428],{"type":14,"value":456},{"type":9,"tag":37,"props":1430,"children":1431},{"class":39,"line":459},[1432,1436,1440],{"type":9,"tag":37,"props":1433,"children":1434},{"style":56},[1435],{"type":14,"value":465},{"type":9,"tag":37,"props":1437,"children":1438},{"style":44},[1439],{"type":14,"value":69},{"type":9,"tag":37,"props":1441,"children":1442},{"style":72},[1443,1446],{"type":9,"tag":474,"props":1444,"children":1445},{"class":476,"style":477},[],{"type":14,"value":480},{"type":9,"tag":37,"props":1448,"children":1449},{"class":39,"line":483},[1450,1454,1458,1462,1466,1471,1475,1479,1484,1488],{"type":9,"tag":37,"props":1451,"children":1452},{"style":44},[1453],{"type":14,"value":489},{"type":9,"tag":37,"props":1455,"children":1456},{"style":56},[1457],{"type":14,"value":494},{"type":9,"tag":37,"props":1459,"children":1460},{"style":44},[1461],{"type":14,"value":69},{"type":9,"tag":37,"props":1463,"children":1464},{"style":72},[1465],{"type":14,"value":441},{"type":9,"tag":37,"props":1467,"children":1468},{"style":44},[1469],{"type":14,"value":1470},"chunked.",{"type":9,"tag":37,"props":1472,"children":1473},{"style":56},[1474],{"type":14,"value":512},{"type":9,"tag":37,"props":1476,"children":1477},{"style":44},[1478],{"type":14,"value":517},{"type":9,"tag":37,"props":1480,"children":1481},{"style":72},[1482],{"type":14,"value":1483},"'\u002Fdownload\u002Fchunked'",{"type":9,"tag":37,"props":1485,"children":1486},{"style":44},[1487],{"type":14,"value":527},{"type":9,"tag":37,"props":1489,"children":1490},{"style":72},[1491],{"type":14,"value":532},{"type":9,"tag":37,"props":1493,"children":1494},{"class":39,"line":535},[1495],{"type":9,"tag":37,"props":1496,"children":1497},{"style":44},[1498],{"type":14,"value":541},{"type":9,"tag":37,"props":1500,"children":1501},{"class":39,"line":544},[1502],{"type":9,"tag":37,"props":1503,"children":1504},{"style":44},[1505],{"type":14,"value":550},{"type":9,"tag":37,"props":1507,"children":1508},{"class":39,"line":553},[1509,1513,1517],{"type":9,"tag":37,"props":1510,"children":1511},{"style":44},[1512],{"type":14,"value":559},{"type":9,"tag":37,"props":1514,"children":1515},{"style":50},[1516],{"type":14,"value":564},{"type":9,"tag":37,"props":1518,"children":1519},{"style":44},[1520],{"type":14,"value":80},{"type":9,"tag":37,"props":1522,"children":1523},{"class":39,"line":571},[1524,1528,1532,1536,1540,1544,1548,1552,1557,1561,1565,1569,1573],{"type":9,"tag":37,"props":1525,"children":1526},{"style":44},[1527],{"type":14,"value":413},{"type":9,"tag":37,"props":1529,"children":1530},{"style":50},[1531],{"type":14,"value":741},{"type":9,"tag":37,"props":1533,"children":1534},{"style":44},[1535],{"type":14,"value":746},{"type":9,"tag":37,"props":1537,"children":1538},{"style":56},[1539],{"type":14,"value":751},{"type":9,"tag":37,"props":1541,"children":1542},{"style":44},[1543],{"type":14,"value":69},{"type":9,"tag":37,"props":1545,"children":1546},{"style":72},[1547],{"type":14,"value":441},{"type":9,"tag":37,"props":1549,"children":1550},{"style":93},[1551],{"type":14,"value":764},{"type":9,"tag":37,"props":1553,"children":1554},{"style":44},[1555],{"type":14,"value":1556},"[chunked.status.value].color",{"type":9,"tag":37,"props":1558,"children":1559},{"style":72},[1560],{"type":14,"value":441},{"type":9,"tag":37,"props":1562,"children":1563},{"style":56},[1564],{"type":14,"value":778},{"type":9,"tag":37,"props":1566,"children":1567},{"style":44},[1568],{"type":14,"value":69},{"type":9,"tag":37,"props":1570,"children":1571},{"style":72},[1572],{"type":14,"value":787},{"type":9,"tag":37,"props":1574,"children":1575},{"style":44},[1576],{"type":14,"value":80},{"type":9,"tag":37,"props":1578,"children":1579},{"class":39,"line":583},[1580],{"type":9,"tag":37,"props":1581,"children":1582},{"style":44},[1583],{"type":14,"value":1584},"        {{ chunked.progress.value === null ? '不确定' : `${chunked.progress.value}%` }}\n",{"type":9,"tag":37,"props":1586,"children":1587},{"class":39,"line":612},[1588],{"type":9,"tag":37,"props":1589,"children":1590},{"style":44},[1591],{"type":14,"value":1592},"        · {{ STATUS[chunked.status.value].label }}\n",{"type":9,"tag":37,"props":1594,"children":1595},{"class":39,"line":630},[1596,1600,1604],{"type":9,"tag":37,"props":1597,"children":1598},{"style":44},[1599],{"type":14,"value":559},{"type":9,"tag":37,"props":1601,"children":1602},{"style":50},[1603],{"type":14,"value":741},{"type":9,"tag":37,"props":1605,"children":1606},{"style":44},[1607],{"type":14,"value":80},{"type":9,"tag":37,"props":1609,"children":1610},{"class":39,"line":648},[1611,1615,1619],{"type":9,"tag":37,"props":1612,"children":1613},{"style":44},[1614],{"type":14,"value":825},{"type":9,"tag":37,"props":1616,"children":1617},{"style":50},[1618],{"type":14,"value":356},{"type":9,"tag":37,"props":1620,"children":1621},{"style":44},[1622],{"type":14,"value":80},{"type":9,"tag":37,"props":1624,"children":1625},{"class":39,"line":669},[1626,1630,1634,1638,1642,1646,1650,1655,1659,1663,1667,1671,1675,1679,1683,1687,1691],{"type":9,"tag":37,"props":1627,"children":1628},{"style":44},[1629],{"type":14,"value":383},{"type":9,"tag":37,"props":1631,"children":1632},{"style":50},[1633],{"type":14,"value":846},{"type":9,"tag":37,"props":1635,"children":1636},{"style":44},[1637],{"type":14,"value":746},{"type":9,"tag":37,"props":1639,"children":1640},{"style":56},[1641],{"type":14,"value":855},{"type":9,"tag":37,"props":1643,"children":1644},{"style":44},[1645],{"type":14,"value":69},{"type":9,"tag":37,"props":1647,"children":1648},{"style":72},[1649],{"type":14,"value":441},{"type":9,"tag":37,"props":1651,"children":1652},{"style":44},[1653],{"type":14,"value":1654},"chunked.progress.value ",{"type":9,"tag":37,"props":1656,"children":1657},{"style":87},[1658],{"type":14,"value":873},{"type":9,"tag":37,"props":1660,"children":1661},{"style":93},[1662],{"type":14,"value":878},{"type":9,"tag":37,"props":1664,"children":1665},{"style":72},[1666],{"type":14,"value":441},{"type":9,"tag":37,"props":1668,"children":1669},{"style":44},[1670],{"type":14,"value":746},{"type":9,"tag":37,"props":1672,"children":1673},{"style":56},[1674],{"type":14,"value":891},{"type":9,"tag":37,"props":1676,"children":1677},{"style":44},[1678],{"type":14,"value":69},{"type":9,"tag":37,"props":1680,"children":1681},{"style":72},[1682],{"type":14,"value":441},{"type":9,"tag":37,"props":1684,"children":1685},{"style":93},[1686],{"type":14,"value":904},{"type":9,"tag":37,"props":1688,"children":1689},{"style":72},[1690],{"type":14,"value":441},{"type":9,"tag":37,"props":1692,"children":1693},{"style":44},[1694],{"type":14,"value":913},{"type":9,"tag":37,"props":1696,"children":1697},{"class":39,"line":698},[1698,1702,1706],{"type":9,"tag":37,"props":1699,"children":1700},{"style":44},[1701],{"type":14,"value":1036},{"type":9,"tag":37,"props":1703,"children":1704},{"style":50},[1705],{"type":14,"value":356},{"type":9,"tag":37,"props":1707,"children":1708},{"style":44},[1709],{"type":14,"value":80},{"type":9,"tag":37,"props":1711,"children":1712},{"class":39,"line":706},[1713,1717,1721],{"type":9,"tag":37,"props":1714,"children":1715},{"style":44},[1716],{"type":14,"value":309},{"type":9,"tag":37,"props":1718,"children":1719},{"style":50},[1720],{"type":14,"value":338},{"type":9,"tag":37,"props":1722,"children":1723},{"style":44},[1724],{"type":14,"value":80},{"type":9,"tag":1062,"props":1726,"children":1727},{},[1728],{"type":14,"value":1066},{"title":22,"searchDepth":83,"depth":83,"links":1730},[],{"code":1732,"filePath":1733,"pascalName":1734},"\u003Cscript setup lang=\"ts\">\nconst STATUS = {\n  idle: { color: 'neutral', label: '空闲' },\n  pending: { color: 'info', label: '传输中' },\n  success: { color: 'success', label: '完成' },\n  error: { color: 'error', label: '失败' },\n  aborted: { color: 'warning', label: '已取消' }\n} as const\n\nconst custom = useDownloadWithProgress()\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex items-center gap-2\">\n      \u003CUButton\n        :loading=\"custom.status.value === 'pending'\"\n        icon=\"i-lucide-file-down\"\n        @click=\"custom.download('\u002Fdownload\u002Flarge', { filename: 'custom-name.bin' })\"\n      >\n        自定义文件名下载\n      \u003C\u002FUButton>\n      \u003CUBadge :color=\"STATUS[custom.status.value].color\" variant=\"subtle\">\n        {{ STATUS[custom.status.value].label }}\n      \u003C\u002FUBadge>\n    \u003C\u002Fdiv>\n    \u003CUAlert\n      v-if=\"custom.error.value\"\n      color=\"error\"\n      variant=\"subtle\"\n      :description=\"custom.error.value.message\"\n    \u002F>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fcomposables\u002Fuse-download-progress\u002FComposablesUseDownloadProgressCustomExample.vue","ComposablesUseDownloadProgressCustomExample",{"data":1736,"body":1737,"toc":2424},{"title":22,"description":22},{"type":6,"children":1738},[1739,2420],{"type":9,"tag":26,"props":1740,"children":1742},{"className":28,"code":1741,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nconst STATUS = {\n  idle: { color: 'neutral', label: '空闲' },\n  pending: { color: 'info', label: '传输中' },\n  success: { color: 'success', label: '完成' },\n  error: { color: 'error', label: '失败' },\n  aborted: { color: 'warning', label: '已取消' }\n} as const\n\nconst custom = useDownloadWithProgress()\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex items-center gap-2\">\n      \u003CUButton\n        :loading=\"custom.status.value === 'pending'\"\n        icon=\"i-lucide-file-down\"\n        @click=\"custom.download('\u002Fdownload\u002Flarge', { filename: 'custom-name.bin' })\"\n      >\n        自定义文件名下载\n      \u003C\u002FUButton>\n      \u003CUBadge :color=\"STATUS[custom.status.value].color\" variant=\"subtle\">\n        {{ STATUS[custom.status.value].label }}\n      \u003C\u002FUBadge>\n    \u003C\u002Fdiv>\n    \u003CUAlert\n      v-if=\"custom.error.value\"\n      color=\"error\"\n      variant=\"subtle\"\n      :description=\"custom.error.value.message\"\n    \u002F>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[1743],{"type":9,"tag":33,"props":1744,"children":1745},{"__ignoreMap":22},[1746,1777,1796,1819,1842,1865,1888,1911,1926,1933,1957,1972,1979,1994,2021,2048,2059,2091,2111,2166,2173,2181,2196,2252,2260,2275,2290,2301,2325,2340,2355,2383,2390,2405],{"type":9,"tag":37,"props":1747,"children":1748},{"class":39,"line":40},[1749,1753,1757,1761,1765,1769,1773],{"type":9,"tag":37,"props":1750,"children":1751},{"style":44},[1752],{"type":14,"value":47},{"type":9,"tag":37,"props":1754,"children":1755},{"style":50},[1756],{"type":14,"value":53},{"type":9,"tag":37,"props":1758,"children":1759},{"style":56},[1760],{"type":14,"value":59},{"type":9,"tag":37,"props":1762,"children":1763},{"style":56},[1764],{"type":14,"value":64},{"type":9,"tag":37,"props":1766,"children":1767},{"style":44},[1768],{"type":14,"value":69},{"type":9,"tag":37,"props":1770,"children":1771},{"style":72},[1772],{"type":14,"value":75},{"type":9,"tag":37,"props":1774,"children":1775},{"style":44},[1776],{"type":14,"value":80},{"type":9,"tag":37,"props":1778,"children":1779},{"class":39,"line":83},[1780,1784,1788,1792],{"type":9,"tag":37,"props":1781,"children":1782},{"style":87},[1783],{"type":14,"value":90},{"type":9,"tag":37,"props":1785,"children":1786},{"style":93},[1787],{"type":14,"value":96},{"type":9,"tag":37,"props":1789,"children":1790},{"style":87},[1791],{"type":14,"value":101},{"type":9,"tag":37,"props":1793,"children":1794},{"style":44},[1795],{"type":14,"value":106},{"type":9,"tag":37,"props":1797,"children":1798},{"class":39,"line":109},[1799,1803,1807,1811,1815],{"type":9,"tag":37,"props":1800,"children":1801},{"style":44},[1802],{"type":14,"value":115},{"type":9,"tag":37,"props":1804,"children":1805},{"style":72},[1806],{"type":14,"value":120},{"type":9,"tag":37,"props":1808,"children":1809},{"style":44},[1810],{"type":14,"value":125},{"type":9,"tag":37,"props":1812,"children":1813},{"style":72},[1814],{"type":14,"value":130},{"type":9,"tag":37,"props":1816,"children":1817},{"style":44},[1818],{"type":14,"value":135},{"type":9,"tag":37,"props":1820,"children":1821},{"class":39,"line":138},[1822,1826,1830,1834,1838],{"type":9,"tag":37,"props":1823,"children":1824},{"style":44},[1825],{"type":14,"value":144},{"type":9,"tag":37,"props":1827,"children":1828},{"style":72},[1829],{"type":14,"value":149},{"type":9,"tag":37,"props":1831,"children":1832},{"style":44},[1833],{"type":14,"value":125},{"type":9,"tag":37,"props":1835,"children":1836},{"style":72},[1837],{"type":14,"value":158},{"type":9,"tag":37,"props":1839,"children":1840},{"style":44},[1841],{"type":14,"value":135},{"type":9,"tag":37,"props":1843,"children":1844},{"class":39,"line":165},[1845,1849,1853,1857,1861],{"type":9,"tag":37,"props":1846,"children":1847},{"style":44},[1848],{"type":14,"value":171},{"type":9,"tag":37,"props":1850,"children":1851},{"style":72},[1852],{"type":14,"value":176},{"type":9,"tag":37,"props":1854,"children":1855},{"style":44},[1856],{"type":14,"value":125},{"type":9,"tag":37,"props":1858,"children":1859},{"style":72},[1860],{"type":14,"value":185},{"type":9,"tag":37,"props":1862,"children":1863},{"style":44},[1864],{"type":14,"value":135},{"type":9,"tag":37,"props":1866,"children":1867},{"class":39,"line":192},[1868,1872,1876,1880,1884],{"type":9,"tag":37,"props":1869,"children":1870},{"style":44},[1871],{"type":14,"value":198},{"type":9,"tag":37,"props":1873,"children":1874},{"style":72},[1875],{"type":14,"value":203},{"type":9,"tag":37,"props":1877,"children":1878},{"style":44},[1879],{"type":14,"value":125},{"type":9,"tag":37,"props":1881,"children":1882},{"style":72},[1883],{"type":14,"value":212},{"type":9,"tag":37,"props":1885,"children":1886},{"style":44},[1887],{"type":14,"value":135},{"type":9,"tag":37,"props":1889,"children":1890},{"class":39,"line":219},[1891,1895,1899,1903,1907],{"type":9,"tag":37,"props":1892,"children":1893},{"style":44},[1894],{"type":14,"value":225},{"type":9,"tag":37,"props":1896,"children":1897},{"style":72},[1898],{"type":14,"value":230},{"type":9,"tag":37,"props":1900,"children":1901},{"style":44},[1902],{"type":14,"value":125},{"type":9,"tag":37,"props":1904,"children":1905},{"style":72},[1906],{"type":14,"value":239},{"type":9,"tag":37,"props":1908,"children":1909},{"style":44},[1910],{"type":14,"value":244},{"type":9,"tag":37,"props":1912,"children":1913},{"class":39,"line":247},[1914,1918,1922],{"type":9,"tag":37,"props":1915,"children":1916},{"style":44},[1917],{"type":14,"value":253},{"type":9,"tag":37,"props":1919,"children":1920},{"style":87},[1921],{"type":14,"value":258},{"type":9,"tag":37,"props":1923,"children":1924},{"style":87},[1925],{"type":14,"value":263},{"type":9,"tag":37,"props":1927,"children":1928},{"class":39,"line":266},[1929],{"type":9,"tag":37,"props":1930,"children":1931},{"emptyLinePlaceholder":270},[1932],{"type":14,"value":273},{"type":9,"tag":37,"props":1934,"children":1935},{"class":39,"line":276},[1936,1940,1945,1949,1953],{"type":9,"tag":37,"props":1937,"children":1938},{"style":87},[1939],{"type":14,"value":90},{"type":9,"tag":37,"props":1941,"children":1942},{"style":93},[1943],{"type":14,"value":1944}," custom",{"type":9,"tag":37,"props":1946,"children":1947},{"style":87},[1948],{"type":14,"value":101},{"type":9,"tag":37,"props":1950,"children":1951},{"style":56},[1952],{"type":14,"value":295},{"type":9,"tag":37,"props":1954,"children":1955},{"style":44},[1956],{"type":14,"value":300},{"type":9,"tag":37,"props":1958,"children":1959},{"class":39,"line":303},[1960,1964,1968],{"type":9,"tag":37,"props":1961,"children":1962},{"style":44},[1963],{"type":14,"value":309},{"type":9,"tag":37,"props":1965,"children":1966},{"style":50},[1967],{"type":14,"value":53},{"type":9,"tag":37,"props":1969,"children":1970},{"style":44},[1971],{"type":14,"value":80},{"type":9,"tag":37,"props":1973,"children":1974},{"class":39,"line":320},[1975],{"type":9,"tag":37,"props":1976,"children":1977},{"emptyLinePlaceholder":270},[1978],{"type":14,"value":273},{"type":9,"tag":37,"props":1980,"children":1981},{"class":39,"line":328},[1982,1986,1990],{"type":9,"tag":37,"props":1983,"children":1984},{"style":44},[1985],{"type":14,"value":47},{"type":9,"tag":37,"props":1987,"children":1988},{"style":50},[1989],{"type":14,"value":338},{"type":9,"tag":37,"props":1991,"children":1992},{"style":44},[1993],{"type":14,"value":80},{"type":9,"tag":37,"props":1995,"children":1996},{"class":39,"line":345},[1997,2001,2005,2009,2013,2017],{"type":9,"tag":37,"props":1998,"children":1999},{"style":44},[2000],{"type":14,"value":351},{"type":9,"tag":37,"props":2002,"children":2003},{"style":50},[2004],{"type":14,"value":356},{"type":9,"tag":37,"props":2006,"children":2007},{"style":56},[2008],{"type":14,"value":361},{"type":9,"tag":37,"props":2010,"children":2011},{"style":44},[2012],{"type":14,"value":69},{"type":9,"tag":37,"props":2014,"children":2015},{"style":72},[2016],{"type":14,"value":370},{"type":9,"tag":37,"props":2018,"children":2019},{"style":44},[2020],{"type":14,"value":80},{"type":9,"tag":37,"props":2022,"children":2023},{"class":39,"line":377},[2024,2028,2032,2036,2040,2044],{"type":9,"tag":37,"props":2025,"children":2026},{"style":44},[2027],{"type":14,"value":383},{"type":9,"tag":37,"props":2029,"children":2030},{"style":50},[2031],{"type":14,"value":356},{"type":9,"tag":37,"props":2033,"children":2034},{"style":56},[2035],{"type":14,"value":361},{"type":9,"tag":37,"props":2037,"children":2038},{"style":44},[2039],{"type":14,"value":69},{"type":9,"tag":37,"props":2041,"children":2042},{"style":72},[2043],{"type":14,"value":400},{"type":9,"tag":37,"props":2045,"children":2046},{"style":44},[2047],{"type":14,"value":80},{"type":9,"tag":37,"props":2049,"children":2050},{"class":39,"line":407},[2051,2055],{"type":9,"tag":37,"props":2052,"children":2053},{"style":44},[2054],{"type":14,"value":413},{"type":9,"tag":37,"props":2056,"children":2057},{"style":50},[2058],{"type":14,"value":418},{"type":9,"tag":37,"props":2060,"children":2061},{"class":39,"line":421},[2062,2066,2070,2074,2078,2083,2087],{"type":9,"tag":37,"props":2063,"children":2064},{"style":44},[2065],{"type":14,"value":427},{"type":9,"tag":37,"props":2067,"children":2068},{"style":56},[2069],{"type":14,"value":432},{"type":9,"tag":37,"props":2071,"children":2072},{"style":44},[2073],{"type":14,"value":69},{"type":9,"tag":37,"props":2075,"children":2076},{"style":72},[2077],{"type":14,"value":441},{"type":9,"tag":37,"props":2079,"children":2080},{"style":44},[2081],{"type":14,"value":2082},"custom.status.value ",{"type":9,"tag":37,"props":2084,"children":2085},{"style":87},[2086],{"type":14,"value":451},{"type":9,"tag":37,"props":2088,"children":2089},{"style":72},[2090],{"type":14,"value":456},{"type":9,"tag":37,"props":2092,"children":2093},{"class":39,"line":459},[2094,2098,2102],{"type":9,"tag":37,"props":2095,"children":2096},{"style":56},[2097],{"type":14,"value":465},{"type":9,"tag":37,"props":2099,"children":2100},{"style":44},[2101],{"type":14,"value":69},{"type":9,"tag":37,"props":2103,"children":2104},{"style":72},[2105,2109],{"type":9,"tag":474,"props":2106,"children":2108},{"class":476,"style":2107},"--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Ffile-down.svg?color=%23000)",[],{"type":14,"value":2110},"\"i-lucide-file-down\"\n",{"type":9,"tag":37,"props":2112,"children":2113},{"class":39,"line":483},[2114,2118,2122,2126,2130,2135,2139,2143,2147,2152,2157,2162],{"type":9,"tag":37,"props":2115,"children":2116},{"style":44},[2117],{"type":14,"value":489},{"type":9,"tag":37,"props":2119,"children":2120},{"style":56},[2121],{"type":14,"value":494},{"type":9,"tag":37,"props":2123,"children":2124},{"style":44},[2125],{"type":14,"value":69},{"type":9,"tag":37,"props":2127,"children":2128},{"style":72},[2129],{"type":14,"value":441},{"type":9,"tag":37,"props":2131,"children":2132},{"style":44},[2133],{"type":14,"value":2134},"custom.",{"type":9,"tag":37,"props":2136,"children":2137},{"style":56},[2138],{"type":14,"value":512},{"type":9,"tag":37,"props":2140,"children":2141},{"style":44},[2142],{"type":14,"value":517},{"type":9,"tag":37,"props":2144,"children":2145},{"style":72},[2146],{"type":14,"value":522},{"type":9,"tag":37,"props":2148,"children":2149},{"style":44},[2150],{"type":14,"value":2151},", { filename: ",{"type":9,"tag":37,"props":2153,"children":2154},{"style":72},[2155],{"type":14,"value":2156},"'custom-name.bin'",{"type":9,"tag":37,"props":2158,"children":2159},{"style":44},[2160],{"type":14,"value":2161}," })",{"type":9,"tag":37,"props":2163,"children":2164},{"style":72},[2165],{"type":14,"value":532},{"type":9,"tag":37,"props":2167,"children":2168},{"class":39,"line":535},[2169],{"type":9,"tag":37,"props":2170,"children":2171},{"style":44},[2172],{"type":14,"value":541},{"type":9,"tag":37,"props":2174,"children":2175},{"class":39,"line":544},[2176],{"type":9,"tag":37,"props":2177,"children":2178},{"style":44},[2179],{"type":14,"value":2180},"        自定义文件名下载\n",{"type":9,"tag":37,"props":2182,"children":2183},{"class":39,"line":553},[2184,2188,2192],{"type":9,"tag":37,"props":2185,"children":2186},{"style":44},[2187],{"type":14,"value":559},{"type":9,"tag":37,"props":2189,"children":2190},{"style":50},[2191],{"type":14,"value":564},{"type":9,"tag":37,"props":2193,"children":2194},{"style":44},[2195],{"type":14,"value":80},{"type":9,"tag":37,"props":2197,"children":2198},{"class":39,"line":571},[2199,2203,2207,2211,2215,2219,2223,2227,2232,2236,2240,2244,2248],{"type":9,"tag":37,"props":2200,"children":2201},{"style":44},[2202],{"type":14,"value":413},{"type":9,"tag":37,"props":2204,"children":2205},{"style":50},[2206],{"type":14,"value":741},{"type":9,"tag":37,"props":2208,"children":2209},{"style":44},[2210],{"type":14,"value":746},{"type":9,"tag":37,"props":2212,"children":2213},{"style":56},[2214],{"type":14,"value":751},{"type":9,"tag":37,"props":2216,"children":2217},{"style":44},[2218],{"type":14,"value":69},{"type":9,"tag":37,"props":2220,"children":2221},{"style":72},[2222],{"type":14,"value":441},{"type":9,"tag":37,"props":2224,"children":2225},{"style":93},[2226],{"type":14,"value":764},{"type":9,"tag":37,"props":2228,"children":2229},{"style":44},[2230],{"type":14,"value":2231},"[custom.status.value].color",{"type":9,"tag":37,"props":2233,"children":2234},{"style":72},[2235],{"type":14,"value":441},{"type":9,"tag":37,"props":2237,"children":2238},{"style":56},[2239],{"type":14,"value":778},{"type":9,"tag":37,"props":2241,"children":2242},{"style":44},[2243],{"type":14,"value":69},{"type":9,"tag":37,"props":2245,"children":2246},{"style":72},[2247],{"type":14,"value":787},{"type":9,"tag":37,"props":2249,"children":2250},{"style":44},[2251],{"type":14,"value":80},{"type":9,"tag":37,"props":2253,"children":2254},{"class":39,"line":583},[2255],{"type":9,"tag":37,"props":2256,"children":2257},{"style":44},[2258],{"type":14,"value":2259},"        {{ STATUS[custom.status.value].label }}\n",{"type":9,"tag":37,"props":2261,"children":2262},{"class":39,"line":612},[2263,2267,2271],{"type":9,"tag":37,"props":2264,"children":2265},{"style":44},[2266],{"type":14,"value":559},{"type":9,"tag":37,"props":2268,"children":2269},{"style":50},[2270],{"type":14,"value":741},{"type":9,"tag":37,"props":2272,"children":2273},{"style":44},[2274],{"type":14,"value":80},{"type":9,"tag":37,"props":2276,"children":2277},{"class":39,"line":630},[2278,2282,2286],{"type":9,"tag":37,"props":2279,"children":2280},{"style":44},[2281],{"type":14,"value":825},{"type":9,"tag":37,"props":2283,"children":2284},{"style":50},[2285],{"type":14,"value":356},{"type":9,"tag":37,"props":2287,"children":2288},{"style":44},[2289],{"type":14,"value":80},{"type":9,"tag":37,"props":2291,"children":2292},{"class":39,"line":648},[2293,2297],{"type":9,"tag":37,"props":2294,"children":2295},{"style":44},[2296],{"type":14,"value":383},{"type":9,"tag":37,"props":2298,"children":2299},{"style":50},[2300],{"type":14,"value":926},{"type":9,"tag":37,"props":2302,"children":2303},{"class":39,"line":669},[2304,2308,2312,2316,2321],{"type":9,"tag":37,"props":2305,"children":2306},{"style":87},[2307],{"type":14,"value":935},{"type":9,"tag":37,"props":2309,"children":2310},{"style":44},[2311],{"type":14,"value":69},{"type":9,"tag":37,"props":2313,"children":2314},{"style":72},[2315],{"type":14,"value":441},{"type":9,"tag":37,"props":2317,"children":2318},{"style":44},[2319],{"type":14,"value":2320},"custom.error.value",{"type":9,"tag":37,"props":2322,"children":2323},{"style":72},[2324],{"type":14,"value":532},{"type":9,"tag":37,"props":2326,"children":2327},{"class":39,"line":698},[2328,2332,2336],{"type":9,"tag":37,"props":2329,"children":2330},{"style":56},[2331],{"type":14,"value":961},{"type":9,"tag":37,"props":2333,"children":2334},{"style":44},[2335],{"type":14,"value":69},{"type":9,"tag":37,"props":2337,"children":2338},{"style":72},[2339],{"type":14,"value":627},{"type":9,"tag":37,"props":2341,"children":2342},{"class":39,"line":706},[2343,2347,2351],{"type":9,"tag":37,"props":2344,"children":2345},{"style":56},[2346],{"type":14,"value":978},{"type":9,"tag":37,"props":2348,"children":2349},{"style":44},[2350],{"type":14,"value":69},{"type":9,"tag":37,"props":2352,"children":2353},{"style":72},[2354],{"type":14,"value":987},{"type":9,"tag":37,"props":2356,"children":2357},{"class":39,"line":715},[2358,2362,2366,2370,2374,2379],{"type":9,"tag":37,"props":2359,"children":2360},{"style":44},[2361],{"type":14,"value":996},{"type":9,"tag":37,"props":2363,"children":2364},{"style":56},[2365],{"type":14,"value":1001},{"type":9,"tag":37,"props":2367,"children":2368},{"style":44},[2369],{"type":14,"value":69},{"type":9,"tag":37,"props":2371,"children":2372},{"style":72},[2373],{"type":14,"value":441},{"type":9,"tag":37,"props":2375,"children":2376},{"style":44},[2377],{"type":14,"value":2378},"custom.error.value.message",{"type":9,"tag":37,"props":2380,"children":2381},{"style":72},[2382],{"type":14,"value":532},{"type":9,"tag":37,"props":2384,"children":2385},{"class":39,"line":731},[2386],{"type":9,"tag":37,"props":2387,"children":2388},{"style":44},[2389],{"type":14,"value":1027},{"type":9,"tag":37,"props":2391,"children":2392},{"class":39,"line":794},[2393,2397,2401],{"type":9,"tag":37,"props":2394,"children":2395},{"style":44},[2396],{"type":14,"value":1036},{"type":9,"tag":37,"props":2398,"children":2399},{"style":50},[2400],{"type":14,"value":356},{"type":9,"tag":37,"props":2402,"children":2403},{"style":44},[2404],{"type":14,"value":80},{"type":9,"tag":37,"props":2406,"children":2407},{"class":39,"line":803},[2408,2412,2416],{"type":9,"tag":37,"props":2409,"children":2410},{"style":44},[2411],{"type":14,"value":309},{"type":9,"tag":37,"props":2413,"children":2414},{"style":50},[2415],{"type":14,"value":338},{"type":9,"tag":37,"props":2417,"children":2418},{"style":44},[2419],{"type":14,"value":80},{"type":9,"tag":1062,"props":2421,"children":2422},{},[2423],{"type":14,"value":1066},{"title":22,"searchDepth":83,"depth":83,"links":2425},[],{"code":2427,"filePath":2428,"pascalName":2429},"\u003Cscript setup lang=\"ts\">\nconst STATUS = {\n  idle: { color: 'neutral', label: '空闲' },\n  pending: { color: 'info', label: '传输中' },\n  success: { color: 'success', label: '完成' },\n  error: { color: 'error', label: '失败' },\n  aborted: { color: 'warning', label: '已取消' }\n} as const\n\nconst postExport = useDownloadWithProgress()\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex items-center gap-2\">\n      \u003CUButton\n        :loading=\"postExport.status.value === 'pending'\"\n        icon=\"i-lucide-package\"\n        @click=\"postExport.download('\u002Fdownload\u002Flarge', {\n          method: 'POST',\n          body: { ids: [1, 2, 3] }\n        })\"\n      >\n        POST 导出\n      \u003C\u002FUButton>\n      \u003CUBadge :color=\"STATUS[postExport.status.value].color\" variant=\"subtle\">\n        {{ STATUS[postExport.status.value].label }}\n      \u003C\u002FUBadge>\n    \u003C\u002Fdiv>\n    \u003CUAlert\n      v-if=\"postExport.error.value\"\n      color=\"error\"\n      variant=\"subtle\"\n      :description=\"postExport.error.value.message\"\n    \u002F>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fcomposables\u002Fuse-download-progress\u002FComposablesUseDownloadProgressPostExample.vue","ComposablesUseDownloadProgressPostExample",{"data":2431,"body":2432,"toc":3172},{"title":22,"description":22},{"type":6,"children":2433},[2434,3168],{"type":9,"tag":26,"props":2435,"children":2437},{"className":28,"code":2436,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nconst STATUS = {\n  idle: { color: 'neutral', label: '空闲' },\n  pending: { color: 'info', label: '传输中' },\n  success: { color: 'success', label: '完成' },\n  error: { color: 'error', label: '失败' },\n  aborted: { color: 'warning', label: '已取消' }\n} as const\n\nconst postExport = useDownloadWithProgress()\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex items-center gap-2\">\n      \u003CUButton\n        :loading=\"postExport.status.value === 'pending'\"\n        icon=\"i-lucide-package\"\n        @click=\"postExport.download('\u002Fdownload\u002Flarge', {\n          method: 'POST',\n          body: { ids: [1, 2, 3] }\n        })\"\n      >\n        POST 导出\n      \u003C\u002FUButton>\n      \u003CUBadge :color=\"STATUS[postExport.status.value].color\" variant=\"subtle\">\n        {{ STATUS[postExport.status.value].label }}\n      \u003C\u002FUBadge>\n    \u003C\u002Fdiv>\n    \u003CUAlert\n      v-if=\"postExport.error.value\"\n      color=\"error\"\n      variant=\"subtle\"\n      :description=\"postExport.error.value.message\"\n    \u002F>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[2438],{"type":9,"tag":33,"props":2439,"children":2440},{"__ignoreMap":22},[2441,2472,2491,2514,2537,2560,2583,2606,2621,2628,2652,2667,2674,2689,2716,2743,2754,2786,2806,2847,2865,2902,2914,2921,2929,2944,3000,3008,3023,3038,3049,3073,3088,3103,3131,3138,3153],{"type":9,"tag":37,"props":2442,"children":2443},{"class":39,"line":40},[2444,2448,2452,2456,2460,2464,2468],{"type":9,"tag":37,"props":2445,"children":2446},{"style":44},[2447],{"type":14,"value":47},{"type":9,"tag":37,"props":2449,"children":2450},{"style":50},[2451],{"type":14,"value":53},{"type":9,"tag":37,"props":2453,"children":2454},{"style":56},[2455],{"type":14,"value":59},{"type":9,"tag":37,"props":2457,"children":2458},{"style":56},[2459],{"type":14,"value":64},{"type":9,"tag":37,"props":2461,"children":2462},{"style":44},[2463],{"type":14,"value":69},{"type":9,"tag":37,"props":2465,"children":2466},{"style":72},[2467],{"type":14,"value":75},{"type":9,"tag":37,"props":2469,"children":2470},{"style":44},[2471],{"type":14,"value":80},{"type":9,"tag":37,"props":2473,"children":2474},{"class":39,"line":83},[2475,2479,2483,2487],{"type":9,"tag":37,"props":2476,"children":2477},{"style":87},[2478],{"type":14,"value":90},{"type":9,"tag":37,"props":2480,"children":2481},{"style":93},[2482],{"type":14,"value":96},{"type":9,"tag":37,"props":2484,"children":2485},{"style":87},[2486],{"type":14,"value":101},{"type":9,"tag":37,"props":2488,"children":2489},{"style":44},[2490],{"type":14,"value":106},{"type":9,"tag":37,"props":2492,"children":2493},{"class":39,"line":109},[2494,2498,2502,2506,2510],{"type":9,"tag":37,"props":2495,"children":2496},{"style":44},[2497],{"type":14,"value":115},{"type":9,"tag":37,"props":2499,"children":2500},{"style":72},[2501],{"type":14,"value":120},{"type":9,"tag":37,"props":2503,"children":2504},{"style":44},[2505],{"type":14,"value":125},{"type":9,"tag":37,"props":2507,"children":2508},{"style":72},[2509],{"type":14,"value":130},{"type":9,"tag":37,"props":2511,"children":2512},{"style":44},[2513],{"type":14,"value":135},{"type":9,"tag":37,"props":2515,"children":2516},{"class":39,"line":138},[2517,2521,2525,2529,2533],{"type":9,"tag":37,"props":2518,"children":2519},{"style":44},[2520],{"type":14,"value":144},{"type":9,"tag":37,"props":2522,"children":2523},{"style":72},[2524],{"type":14,"value":149},{"type":9,"tag":37,"props":2526,"children":2527},{"style":44},[2528],{"type":14,"value":125},{"type":9,"tag":37,"props":2530,"children":2531},{"style":72},[2532],{"type":14,"value":158},{"type":9,"tag":37,"props":2534,"children":2535},{"style":44},[2536],{"type":14,"value":135},{"type":9,"tag":37,"props":2538,"children":2539},{"class":39,"line":165},[2540,2544,2548,2552,2556],{"type":9,"tag":37,"props":2541,"children":2542},{"style":44},[2543],{"type":14,"value":171},{"type":9,"tag":37,"props":2545,"children":2546},{"style":72},[2547],{"type":14,"value":176},{"type":9,"tag":37,"props":2549,"children":2550},{"style":44},[2551],{"type":14,"value":125},{"type":9,"tag":37,"props":2553,"children":2554},{"style":72},[2555],{"type":14,"value":185},{"type":9,"tag":37,"props":2557,"children":2558},{"style":44},[2559],{"type":14,"value":135},{"type":9,"tag":37,"props":2561,"children":2562},{"class":39,"line":192},[2563,2567,2571,2575,2579],{"type":9,"tag":37,"props":2564,"children":2565},{"style":44},[2566],{"type":14,"value":198},{"type":9,"tag":37,"props":2568,"children":2569},{"style":72},[2570],{"type":14,"value":203},{"type":9,"tag":37,"props":2572,"children":2573},{"style":44},[2574],{"type":14,"value":125},{"type":9,"tag":37,"props":2576,"children":2577},{"style":72},[2578],{"type":14,"value":212},{"type":9,"tag":37,"props":2580,"children":2581},{"style":44},[2582],{"type":14,"value":135},{"type":9,"tag":37,"props":2584,"children":2585},{"class":39,"line":219},[2586,2590,2594,2598,2602],{"type":9,"tag":37,"props":2587,"children":2588},{"style":44},[2589],{"type":14,"value":225},{"type":9,"tag":37,"props":2591,"children":2592},{"style":72},[2593],{"type":14,"value":230},{"type":9,"tag":37,"props":2595,"children":2596},{"style":44},[2597],{"type":14,"value":125},{"type":9,"tag":37,"props":2599,"children":2600},{"style":72},[2601],{"type":14,"value":239},{"type":9,"tag":37,"props":2603,"children":2604},{"style":44},[2605],{"type":14,"value":244},{"type":9,"tag":37,"props":2607,"children":2608},{"class":39,"line":247},[2609,2613,2617],{"type":9,"tag":37,"props":2610,"children":2611},{"style":44},[2612],{"type":14,"value":253},{"type":9,"tag":37,"props":2614,"children":2615},{"style":87},[2616],{"type":14,"value":258},{"type":9,"tag":37,"props":2618,"children":2619},{"style":87},[2620],{"type":14,"value":263},{"type":9,"tag":37,"props":2622,"children":2623},{"class":39,"line":266},[2624],{"type":9,"tag":37,"props":2625,"children":2626},{"emptyLinePlaceholder":270},[2627],{"type":14,"value":273},{"type":9,"tag":37,"props":2629,"children":2630},{"class":39,"line":276},[2631,2635,2640,2644,2648],{"type":9,"tag":37,"props":2632,"children":2633},{"style":87},[2634],{"type":14,"value":90},{"type":9,"tag":37,"props":2636,"children":2637},{"style":93},[2638],{"type":14,"value":2639}," postExport",{"type":9,"tag":37,"props":2641,"children":2642},{"style":87},[2643],{"type":14,"value":101},{"type":9,"tag":37,"props":2645,"children":2646},{"style":56},[2647],{"type":14,"value":295},{"type":9,"tag":37,"props":2649,"children":2650},{"style":44},[2651],{"type":14,"value":300},{"type":9,"tag":37,"props":2653,"children":2654},{"class":39,"line":303},[2655,2659,2663],{"type":9,"tag":37,"props":2656,"children":2657},{"style":44},[2658],{"type":14,"value":309},{"type":9,"tag":37,"props":2660,"children":2661},{"style":50},[2662],{"type":14,"value":53},{"type":9,"tag":37,"props":2664,"children":2665},{"style":44},[2666],{"type":14,"value":80},{"type":9,"tag":37,"props":2668,"children":2669},{"class":39,"line":320},[2670],{"type":9,"tag":37,"props":2671,"children":2672},{"emptyLinePlaceholder":270},[2673],{"type":14,"value":273},{"type":9,"tag":37,"props":2675,"children":2676},{"class":39,"line":328},[2677,2681,2685],{"type":9,"tag":37,"props":2678,"children":2679},{"style":44},[2680],{"type":14,"value":47},{"type":9,"tag":37,"props":2682,"children":2683},{"style":50},[2684],{"type":14,"value":338},{"type":9,"tag":37,"props":2686,"children":2687},{"style":44},[2688],{"type":14,"value":80},{"type":9,"tag":37,"props":2690,"children":2691},{"class":39,"line":345},[2692,2696,2700,2704,2708,2712],{"type":9,"tag":37,"props":2693,"children":2694},{"style":44},[2695],{"type":14,"value":351},{"type":9,"tag":37,"props":2697,"children":2698},{"style":50},[2699],{"type":14,"value":356},{"type":9,"tag":37,"props":2701,"children":2702},{"style":56},[2703],{"type":14,"value":361},{"type":9,"tag":37,"props":2705,"children":2706},{"style":44},[2707],{"type":14,"value":69},{"type":9,"tag":37,"props":2709,"children":2710},{"style":72},[2711],{"type":14,"value":370},{"type":9,"tag":37,"props":2713,"children":2714},{"style":44},[2715],{"type":14,"value":80},{"type":9,"tag":37,"props":2717,"children":2718},{"class":39,"line":377},[2719,2723,2727,2731,2735,2739],{"type":9,"tag":37,"props":2720,"children":2721},{"style":44},[2722],{"type":14,"value":383},{"type":9,"tag":37,"props":2724,"children":2725},{"style":50},[2726],{"type":14,"value":356},{"type":9,"tag":37,"props":2728,"children":2729},{"style":56},[2730],{"type":14,"value":361},{"type":9,"tag":37,"props":2732,"children":2733},{"style":44},[2734],{"type":14,"value":69},{"type":9,"tag":37,"props":2736,"children":2737},{"style":72},[2738],{"type":14,"value":400},{"type":9,"tag":37,"props":2740,"children":2741},{"style":44},[2742],{"type":14,"value":80},{"type":9,"tag":37,"props":2744,"children":2745},{"class":39,"line":407},[2746,2750],{"type":9,"tag":37,"props":2747,"children":2748},{"style":44},[2749],{"type":14,"value":413},{"type":9,"tag":37,"props":2751,"children":2752},{"style":50},[2753],{"type":14,"value":418},{"type":9,"tag":37,"props":2755,"children":2756},{"class":39,"line":421},[2757,2761,2765,2769,2773,2778,2782],{"type":9,"tag":37,"props":2758,"children":2759},{"style":44},[2760],{"type":14,"value":427},{"type":9,"tag":37,"props":2762,"children":2763},{"style":56},[2764],{"type":14,"value":432},{"type":9,"tag":37,"props":2766,"children":2767},{"style":44},[2768],{"type":14,"value":69},{"type":9,"tag":37,"props":2770,"children":2771},{"style":72},[2772],{"type":14,"value":441},{"type":9,"tag":37,"props":2774,"children":2775},{"style":44},[2776],{"type":14,"value":2777},"postExport.status.value ",{"type":9,"tag":37,"props":2779,"children":2780},{"style":87},[2781],{"type":14,"value":451},{"type":9,"tag":37,"props":2783,"children":2784},{"style":72},[2785],{"type":14,"value":456},{"type":9,"tag":37,"props":2787,"children":2788},{"class":39,"line":459},[2789,2793,2797],{"type":9,"tag":37,"props":2790,"children":2791},{"style":56},[2792],{"type":14,"value":465},{"type":9,"tag":37,"props":2794,"children":2795},{"style":44},[2796],{"type":14,"value":69},{"type":9,"tag":37,"props":2798,"children":2799},{"style":72},[2800,2804],{"type":9,"tag":474,"props":2801,"children":2803},{"class":476,"style":2802},"--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Fpackage.svg?color=%23000)",[],{"type":14,"value":2805},"\"i-lucide-package\"\n",{"type":9,"tag":37,"props":2807,"children":2808},{"class":39,"line":483},[2809,2813,2817,2821,2825,2830,2834,2838,2842],{"type":9,"tag":37,"props":2810,"children":2811},{"style":44},[2812],{"type":14,"value":489},{"type":9,"tag":37,"props":2814,"children":2815},{"style":56},[2816],{"type":14,"value":494},{"type":9,"tag":37,"props":2818,"children":2819},{"style":44},[2820],{"type":14,"value":69},{"type":9,"tag":37,"props":2822,"children":2823},{"style":72},[2824],{"type":14,"value":441},{"type":9,"tag":37,"props":2826,"children":2827},{"style":44},[2828],{"type":14,"value":2829},"postExport.",{"type":9,"tag":37,"props":2831,"children":2832},{"style":56},[2833],{"type":14,"value":512},{"type":9,"tag":37,"props":2835,"children":2836},{"style":44},[2837],{"type":14,"value":517},{"type":9,"tag":37,"props":2839,"children":2840},{"style":72},[2841],{"type":14,"value":522},{"type":9,"tag":37,"props":2843,"children":2844},{"style":44},[2845],{"type":14,"value":2846},", {\n",{"type":9,"tag":37,"props":2848,"children":2849},{"class":39,"line":535},[2850,2855,2860],{"type":9,"tag":37,"props":2851,"children":2852},{"style":44},[2853],{"type":14,"value":2854},"          method: ",{"type":9,"tag":37,"props":2856,"children":2857},{"style":72},[2858],{"type":14,"value":2859},"'POST'",{"type":9,"tag":37,"props":2861,"children":2862},{"style":44},[2863],{"type":14,"value":2864},",\n",{"type":9,"tag":37,"props":2866,"children":2867},{"class":39,"line":544},[2868,2873,2878,2883,2888,2892,2897],{"type":9,"tag":37,"props":2869,"children":2870},{"style":44},[2871],{"type":14,"value":2872},"          body: { ids: [",{"type":9,"tag":37,"props":2874,"children":2875},{"style":93},[2876],{"type":14,"value":2877},"1",{"type":9,"tag":37,"props":2879,"children":2880},{"style":44},[2881],{"type":14,"value":2882},", ",{"type":9,"tag":37,"props":2884,"children":2885},{"style":93},[2886],{"type":14,"value":2887},"2",{"type":9,"tag":37,"props":2889,"children":2890},{"style":44},[2891],{"type":14,"value":2882},{"type":9,"tag":37,"props":2893,"children":2894},{"style":93},[2895],{"type":14,"value":2896},"3",{"type":9,"tag":37,"props":2898,"children":2899},{"style":44},[2900],{"type":14,"value":2901},"] }\n",{"type":9,"tag":37,"props":2903,"children":2904},{"class":39,"line":553},[2905,2910],{"type":9,"tag":37,"props":2906,"children":2907},{"style":44},[2908],{"type":14,"value":2909},"        })",{"type":9,"tag":37,"props":2911,"children":2912},{"style":72},[2913],{"type":14,"value":532},{"type":9,"tag":37,"props":2915,"children":2916},{"class":39,"line":571},[2917],{"type":9,"tag":37,"props":2918,"children":2919},{"style":44},[2920],{"type":14,"value":541},{"type":9,"tag":37,"props":2922,"children":2923},{"class":39,"line":583},[2924],{"type":9,"tag":37,"props":2925,"children":2926},{"style":44},[2927],{"type":14,"value":2928},"        POST 导出\n",{"type":9,"tag":37,"props":2930,"children":2931},{"class":39,"line":612},[2932,2936,2940],{"type":9,"tag":37,"props":2933,"children":2934},{"style":44},[2935],{"type":14,"value":559},{"type":9,"tag":37,"props":2937,"children":2938},{"style":50},[2939],{"type":14,"value":564},{"type":9,"tag":37,"props":2941,"children":2942},{"style":44},[2943],{"type":14,"value":80},{"type":9,"tag":37,"props":2945,"children":2946},{"class":39,"line":630},[2947,2951,2955,2959,2963,2967,2971,2975,2980,2984,2988,2992,2996],{"type":9,"tag":37,"props":2948,"children":2949},{"style":44},[2950],{"type":14,"value":413},{"type":9,"tag":37,"props":2952,"children":2953},{"style":50},[2954],{"type":14,"value":741},{"type":9,"tag":37,"props":2956,"children":2957},{"style":44},[2958],{"type":14,"value":746},{"type":9,"tag":37,"props":2960,"children":2961},{"style":56},[2962],{"type":14,"value":751},{"type":9,"tag":37,"props":2964,"children":2965},{"style":44},[2966],{"type":14,"value":69},{"type":9,"tag":37,"props":2968,"children":2969},{"style":72},[2970],{"type":14,"value":441},{"type":9,"tag":37,"props":2972,"children":2973},{"style":93},[2974],{"type":14,"value":764},{"type":9,"tag":37,"props":2976,"children":2977},{"style":44},[2978],{"type":14,"value":2979},"[postExport.status.value].color",{"type":9,"tag":37,"props":2981,"children":2982},{"style":72},[2983],{"type":14,"value":441},{"type":9,"tag":37,"props":2985,"children":2986},{"style":56},[2987],{"type":14,"value":778},{"type":9,"tag":37,"props":2989,"children":2990},{"style":44},[2991],{"type":14,"value":69},{"type":9,"tag":37,"props":2993,"children":2994},{"style":72},[2995],{"type":14,"value":787},{"type":9,"tag":37,"props":2997,"children":2998},{"style":44},[2999],{"type":14,"value":80},{"type":9,"tag":37,"props":3001,"children":3002},{"class":39,"line":648},[3003],{"type":9,"tag":37,"props":3004,"children":3005},{"style":44},[3006],{"type":14,"value":3007},"        {{ STATUS[postExport.status.value].label }}\n",{"type":9,"tag":37,"props":3009,"children":3010},{"class":39,"line":669},[3011,3015,3019],{"type":9,"tag":37,"props":3012,"children":3013},{"style":44},[3014],{"type":14,"value":559},{"type":9,"tag":37,"props":3016,"children":3017},{"style":50},[3018],{"type":14,"value":741},{"type":9,"tag":37,"props":3020,"children":3021},{"style":44},[3022],{"type":14,"value":80},{"type":9,"tag":37,"props":3024,"children":3025},{"class":39,"line":698},[3026,3030,3034],{"type":9,"tag":37,"props":3027,"children":3028},{"style":44},[3029],{"type":14,"value":825},{"type":9,"tag":37,"props":3031,"children":3032},{"style":50},[3033],{"type":14,"value":356},{"type":9,"tag":37,"props":3035,"children":3036},{"style":44},[3037],{"type":14,"value":80},{"type":9,"tag":37,"props":3039,"children":3040},{"class":39,"line":706},[3041,3045],{"type":9,"tag":37,"props":3042,"children":3043},{"style":44},[3044],{"type":14,"value":383},{"type":9,"tag":37,"props":3046,"children":3047},{"style":50},[3048],{"type":14,"value":926},{"type":9,"tag":37,"props":3050,"children":3051},{"class":39,"line":715},[3052,3056,3060,3064,3069],{"type":9,"tag":37,"props":3053,"children":3054},{"style":87},[3055],{"type":14,"value":935},{"type":9,"tag":37,"props":3057,"children":3058},{"style":44},[3059],{"type":14,"value":69},{"type":9,"tag":37,"props":3061,"children":3062},{"style":72},[3063],{"type":14,"value":441},{"type":9,"tag":37,"props":3065,"children":3066},{"style":44},[3067],{"type":14,"value":3068},"postExport.error.value",{"type":9,"tag":37,"props":3070,"children":3071},{"style":72},[3072],{"type":14,"value":532},{"type":9,"tag":37,"props":3074,"children":3075},{"class":39,"line":731},[3076,3080,3084],{"type":9,"tag":37,"props":3077,"children":3078},{"style":56},[3079],{"type":14,"value":961},{"type":9,"tag":37,"props":3081,"children":3082},{"style":44},[3083],{"type":14,"value":69},{"type":9,"tag":37,"props":3085,"children":3086},{"style":72},[3087],{"type":14,"value":627},{"type":9,"tag":37,"props":3089,"children":3090},{"class":39,"line":794},[3091,3095,3099],{"type":9,"tag":37,"props":3092,"children":3093},{"style":56},[3094],{"type":14,"value":978},{"type":9,"tag":37,"props":3096,"children":3097},{"style":44},[3098],{"type":14,"value":69},{"type":9,"tag":37,"props":3100,"children":3101},{"style":72},[3102],{"type":14,"value":987},{"type":9,"tag":37,"props":3104,"children":3105},{"class":39,"line":803},[3106,3110,3114,3118,3122,3127],{"type":9,"tag":37,"props":3107,"children":3108},{"style":44},[3109],{"type":14,"value":996},{"type":9,"tag":37,"props":3111,"children":3112},{"style":56},[3113],{"type":14,"value":1001},{"type":9,"tag":37,"props":3115,"children":3116},{"style":44},[3117],{"type":14,"value":69},{"type":9,"tag":37,"props":3119,"children":3120},{"style":72},[3121],{"type":14,"value":441},{"type":9,"tag":37,"props":3123,"children":3124},{"style":44},[3125],{"type":14,"value":3126},"postExport.error.value.message",{"type":9,"tag":37,"props":3128,"children":3129},{"style":72},[3130],{"type":14,"value":532},{"type":9,"tag":37,"props":3132,"children":3133},{"class":39,"line":819},[3134],{"type":9,"tag":37,"props":3135,"children":3136},{"style":44},[3137],{"type":14,"value":1027},{"type":9,"tag":37,"props":3139,"children":3140},{"class":39,"line":836},[3141,3145,3149],{"type":9,"tag":37,"props":3142,"children":3143},{"style":44},[3144],{"type":14,"value":1036},{"type":9,"tag":37,"props":3146,"children":3147},{"style":50},[3148],{"type":14,"value":356},{"type":9,"tag":37,"props":3150,"children":3151},{"style":44},[3152],{"type":14,"value":80},{"type":9,"tag":37,"props":3154,"children":3155},{"class":39,"line":916},[3156,3160,3164],{"type":9,"tag":37,"props":3157,"children":3158},{"style":44},[3159],{"type":14,"value":309},{"type":9,"tag":37,"props":3161,"children":3162},{"style":50},[3163],{"type":14,"value":338},{"type":9,"tag":37,"props":3165,"children":3166},{"style":44},[3167],{"type":14,"value":80},{"type":9,"tag":1062,"props":3169,"children":3170},{},[3171],{"type":14,"value":1066},{"title":22,"searchDepth":83,"depth":83,"links":3173},[],{"code":3175,"filePath":3176,"pascalName":3177},"\u003Cscript setup lang=\"ts\">\nconst STATUS = {\n  idle: { color: 'neutral', label: '空闲' },\n  pending: { color: 'info', label: '上传中' },\n  success: { color: 'success', label: '完成' },\n  error: { color: 'error', label: '失败' },\n  aborted: { color: 'warning', label: '已取消' }\n} as const\n\nconst selected = ref\u003CFile[] | null>(null)\nconst basic = useUploadWithProgress\u003C{ files: Array\u003C{ name: string, size: number }> }>()\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUFileUpload v-model=\"selected\" multiple label=\"拖拽或点击选择文件\" \u002F>\n    \u003Cdiv class=\"flex items-center gap-2\">\n      \u003CUButton\n        :loading=\"basic.status.value === 'pending'\"\n        :disabled=\"!selected?.length\"\n        icon=\"i-lucide-upload\"\n        @click=\"basic.upload('\u002Fupload', selected!, { fieldName: 'files' })\"\n      >\n        开始上传\n      \u003C\u002FUButton>\n      \u003CUButton\n        v-if=\"basic.status.value === 'pending'\"\n        color=\"error\"\n        variant=\"soft\"\n        icon=\"i-lucide-x\"\n        @click=\"basic.abort\"\n      >\n        中止\n      \u003C\u002FUButton>\n      \u003CUBadge :color=\"STATUS[basic.status.value].color\" variant=\"subtle\">\n        {{ basic.progress.value ?? 0 }}% · {{ STATUS[basic.status.value].label }}\n      \u003C\u002FUBadge>\n    \u003C\u002Fdiv>\n    \u003CUProgress :model-value=\"basic.progress.value ?? undefined\" :max=\"100\" \u002F>\n    \u003CUAlert\n      v-if=\"basic.error.value\"\n      color=\"error\"\n      variant=\"subtle\"\n      :description=\"basic.error.value.message\"\n    \u002F>\n    \u003CUCard v-if=\"basic.data.value\">\n      \u003Cpre class=\"text-xs overflow-auto\">{{ basic.data.value }}\u003C\u002Fpre>\n    \u003C\u002FUCard>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fcomposables\u002Fuse-upload-progress\u002FComposablesUseUploadProgressBasicExample.vue","ComposablesUseUploadProgressBasicExample",{"data":3179,"body":3180,"toc":4395},{"title":22,"description":22},{"type":6,"children":3181},[3182,4391],{"type":9,"tag":26,"props":3183,"children":3185},{"className":28,"code":3184,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nconst STATUS = {\n  idle: { color: 'neutral', label: '空闲' },\n  pending: { color: 'info', label: '上传中' },\n  success: { color: 'success', label: '完成' },\n  error: { color: 'error', label: '失败' },\n  aborted: { color: 'warning', label: '已取消' }\n} as const\n\nconst selected = ref\u003CFile[] | null>(null)\nconst basic = useUploadWithProgress\u003C{ files: Array\u003C{ name: string, size: number }> }>()\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUFileUpload v-model=\"selected\" multiple label=\"拖拽或点击选择文件\" \u002F>\n    \u003Cdiv class=\"flex items-center gap-2\">\n      \u003CUButton\n        :loading=\"basic.status.value === 'pending'\"\n        :disabled=\"!selected?.length\"\n        icon=\"i-lucide-upload\"\n        @click=\"basic.upload('\u002Fupload', selected!, { fieldName: 'files' })\"\n      >\n        开始上传\n      \u003C\u002FUButton>\n      \u003CUButton\n        v-if=\"basic.status.value === 'pending'\"\n        color=\"error\"\n        variant=\"soft\"\n        icon=\"i-lucide-x\"\n        @click=\"basic.abort\"\n      >\n        中止\n      \u003C\u002FUButton>\n      \u003CUBadge :color=\"STATUS[basic.status.value].color\" variant=\"subtle\">\n        {{ basic.progress.value ?? 0 }}% · {{ STATUS[basic.status.value].label }}\n      \u003C\u002FUBadge>\n    \u003C\u002Fdiv>\n    \u003CUProgress :model-value=\"basic.progress.value ?? undefined\" :max=\"100\" \u002F>\n    \u003CUAlert\n      v-if=\"basic.error.value\"\n      color=\"error\"\n      variant=\"subtle\"\n      :description=\"basic.error.value.message\"\n    \u002F>\n    \u003CUCard v-if=\"basic.data.value\">\n      \u003Cpre class=\"text-xs overflow-auto\">{{ basic.data.value }}\u003C\u002Fpre>\n    \u003C\u002FUCard>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[3186],{"type":9,"tag":33,"props":3187,"children":3188},{"__ignoreMap":22},[3189,3220,3239,3262,3286,3309,3332,3355,3370,3377,3437,3519,3534,3541,3556,3583,3640,3667,3678,3709,3748,3768,3832,3839,3847,3862,3873,3900,3915,3930,3948,3975,3982,3989,4004,4059,4066,4081,4096,4167,4178,4201,4216,4231,4258,4266,4305,4343,4359,4375],{"type":9,"tag":37,"props":3190,"children":3191},{"class":39,"line":40},[3192,3196,3200,3204,3208,3212,3216],{"type":9,"tag":37,"props":3193,"children":3194},{"style":44},[3195],{"type":14,"value":47},{"type":9,"tag":37,"props":3197,"children":3198},{"style":50},[3199],{"type":14,"value":53},{"type":9,"tag":37,"props":3201,"children":3202},{"style":56},[3203],{"type":14,"value":59},{"type":9,"tag":37,"props":3205,"children":3206},{"style":56},[3207],{"type":14,"value":64},{"type":9,"tag":37,"props":3209,"children":3210},{"style":44},[3211],{"type":14,"value":69},{"type":9,"tag":37,"props":3213,"children":3214},{"style":72},[3215],{"type":14,"value":75},{"type":9,"tag":37,"props":3217,"children":3218},{"style":44},[3219],{"type":14,"value":80},{"type":9,"tag":37,"props":3221,"children":3222},{"class":39,"line":83},[3223,3227,3231,3235],{"type":9,"tag":37,"props":3224,"children":3225},{"style":87},[3226],{"type":14,"value":90},{"type":9,"tag":37,"props":3228,"children":3229},{"style":93},[3230],{"type":14,"value":96},{"type":9,"tag":37,"props":3232,"children":3233},{"style":87},[3234],{"type":14,"value":101},{"type":9,"tag":37,"props":3236,"children":3237},{"style":44},[3238],{"type":14,"value":106},{"type":9,"tag":37,"props":3240,"children":3241},{"class":39,"line":109},[3242,3246,3250,3254,3258],{"type":9,"tag":37,"props":3243,"children":3244},{"style":44},[3245],{"type":14,"value":115},{"type":9,"tag":37,"props":3247,"children":3248},{"style":72},[3249],{"type":14,"value":120},{"type":9,"tag":37,"props":3251,"children":3252},{"style":44},[3253],{"type":14,"value":125},{"type":9,"tag":37,"props":3255,"children":3256},{"style":72},[3257],{"type":14,"value":130},{"type":9,"tag":37,"props":3259,"children":3260},{"style":44},[3261],{"type":14,"value":135},{"type":9,"tag":37,"props":3263,"children":3264},{"class":39,"line":138},[3265,3269,3273,3277,3282],{"type":9,"tag":37,"props":3266,"children":3267},{"style":44},[3268],{"type":14,"value":144},{"type":9,"tag":37,"props":3270,"children":3271},{"style":72},[3272],{"type":14,"value":149},{"type":9,"tag":37,"props":3274,"children":3275},{"style":44},[3276],{"type":14,"value":125},{"type":9,"tag":37,"props":3278,"children":3279},{"style":72},[3280],{"type":14,"value":3281},"'上传中'",{"type":9,"tag":37,"props":3283,"children":3284},{"style":44},[3285],{"type":14,"value":135},{"type":9,"tag":37,"props":3287,"children":3288},{"class":39,"line":165},[3289,3293,3297,3301,3305],{"type":9,"tag":37,"props":3290,"children":3291},{"style":44},[3292],{"type":14,"value":171},{"type":9,"tag":37,"props":3294,"children":3295},{"style":72},[3296],{"type":14,"value":176},{"type":9,"tag":37,"props":3298,"children":3299},{"style":44},[3300],{"type":14,"value":125},{"type":9,"tag":37,"props":3302,"children":3303},{"style":72},[3304],{"type":14,"value":185},{"type":9,"tag":37,"props":3306,"children":3307},{"style":44},[3308],{"type":14,"value":135},{"type":9,"tag":37,"props":3310,"children":3311},{"class":39,"line":192},[3312,3316,3320,3324,3328],{"type":9,"tag":37,"props":3313,"children":3314},{"style":44},[3315],{"type":14,"value":198},{"type":9,"tag":37,"props":3317,"children":3318},{"style":72},[3319],{"type":14,"value":203},{"type":9,"tag":37,"props":3321,"children":3322},{"style":44},[3323],{"type":14,"value":125},{"type":9,"tag":37,"props":3325,"children":3326},{"style":72},[3327],{"type":14,"value":212},{"type":9,"tag":37,"props":3329,"children":3330},{"style":44},[3331],{"type":14,"value":135},{"type":9,"tag":37,"props":3333,"children":3334},{"class":39,"line":219},[3335,3339,3343,3347,3351],{"type":9,"tag":37,"props":3336,"children":3337},{"style":44},[3338],{"type":14,"value":225},{"type":9,"tag":37,"props":3340,"children":3341},{"style":72},[3342],{"type":14,"value":230},{"type":9,"tag":37,"props":3344,"children":3345},{"style":44},[3346],{"type":14,"value":125},{"type":9,"tag":37,"props":3348,"children":3349},{"style":72},[3350],{"type":14,"value":239},{"type":9,"tag":37,"props":3352,"children":3353},{"style":44},[3354],{"type":14,"value":244},{"type":9,"tag":37,"props":3356,"children":3357},{"class":39,"line":247},[3358,3362,3366],{"type":9,"tag":37,"props":3359,"children":3360},{"style":44},[3361],{"type":14,"value":253},{"type":9,"tag":37,"props":3363,"children":3364},{"style":87},[3365],{"type":14,"value":258},{"type":9,"tag":37,"props":3367,"children":3368},{"style":87},[3369],{"type":14,"value":263},{"type":9,"tag":37,"props":3371,"children":3372},{"class":39,"line":266},[3373],{"type":9,"tag":37,"props":3374,"children":3375},{"emptyLinePlaceholder":270},[3376],{"type":14,"value":273},{"type":9,"tag":37,"props":3378,"children":3379},{"class":39,"line":276},[3380,3384,3389,3393,3398,3402,3407,3412,3417,3422,3427,3432],{"type":9,"tag":37,"props":3381,"children":3382},{"style":87},[3383],{"type":14,"value":90},{"type":9,"tag":37,"props":3385,"children":3386},{"style":93},[3387],{"type":14,"value":3388}," selected",{"type":9,"tag":37,"props":3390,"children":3391},{"style":87},[3392],{"type":14,"value":101},{"type":9,"tag":37,"props":3394,"children":3395},{"style":56},[3396],{"type":14,"value":3397}," ref",{"type":9,"tag":37,"props":3399,"children":3400},{"style":44},[3401],{"type":14,"value":47},{"type":9,"tag":37,"props":3403,"children":3404},{"style":56},[3405],{"type":14,"value":3406},"File",{"type":9,"tag":37,"props":3408,"children":3409},{"style":44},[3410],{"type":14,"value":3411},"[] ",{"type":9,"tag":37,"props":3413,"children":3414},{"style":87},[3415],{"type":14,"value":3416},"|",{"type":9,"tag":37,"props":3418,"children":3419},{"style":93},[3420],{"type":14,"value":3421}," null",{"type":9,"tag":37,"props":3423,"children":3424},{"style":44},[3425],{"type":14,"value":3426},">(",{"type":9,"tag":37,"props":3428,"children":3429},{"style":93},[3430],{"type":14,"value":3431},"null",{"type":9,"tag":37,"props":3433,"children":3434},{"style":44},[3435],{"type":14,"value":3436},")\n",{"type":9,"tag":37,"props":3438,"children":3439},{"class":39,"line":303},[3440,3444,3448,3452,3457,3462,3468,3473,3478,3482,3487,3491,3496,3500,3505,3509,3514],{"type":9,"tag":37,"props":3441,"children":3442},{"style":87},[3443],{"type":14,"value":90},{"type":9,"tag":37,"props":3445,"children":3446},{"style":93},[3447],{"type":14,"value":286},{"type":9,"tag":37,"props":3449,"children":3450},{"style":87},[3451],{"type":14,"value":101},{"type":9,"tag":37,"props":3453,"children":3454},{"style":56},[3455],{"type":14,"value":3456}," useUploadWithProgress",{"type":9,"tag":37,"props":3458,"children":3459},{"style":44},[3460],{"type":14,"value":3461},"\u003C{ ",{"type":9,"tag":37,"props":3463,"children":3465},{"style":3464},"--shiki-light:#E36209;--shiki-default:#E36209;--shiki-dark:#FFAB70",[3466],{"type":14,"value":3467},"files",{"type":9,"tag":37,"props":3469,"children":3470},{"style":87},[3471],{"type":14,"value":3472},":",{"type":9,"tag":37,"props":3474,"children":3475},{"style":56},[3476],{"type":14,"value":3477}," Array",{"type":9,"tag":37,"props":3479,"children":3480},{"style":44},[3481],{"type":14,"value":3461},{"type":9,"tag":37,"props":3483,"children":3484},{"style":3464},[3485],{"type":14,"value":3486},"name",{"type":9,"tag":37,"props":3488,"children":3489},{"style":87},[3490],{"type":14,"value":3472},{"type":9,"tag":37,"props":3492,"children":3493},{"style":93},[3494],{"type":14,"value":3495}," string",{"type":9,"tag":37,"props":3497,"children":3498},{"style":44},[3499],{"type":14,"value":2882},{"type":9,"tag":37,"props":3501,"children":3502},{"style":3464},[3503],{"type":14,"value":3504},"size",{"type":9,"tag":37,"props":3506,"children":3507},{"style":87},[3508],{"type":14,"value":3472},{"type":9,"tag":37,"props":3510,"children":3511},{"style":93},[3512],{"type":14,"value":3513}," number",{"type":9,"tag":37,"props":3515,"children":3516},{"style":44},[3517],{"type":14,"value":3518}," }> }>()\n",{"type":9,"tag":37,"props":3520,"children":3521},{"class":39,"line":320},[3522,3526,3530],{"type":9,"tag":37,"props":3523,"children":3524},{"style":44},[3525],{"type":14,"value":309},{"type":9,"tag":37,"props":3527,"children":3528},{"style":50},[3529],{"type":14,"value":53},{"type":9,"tag":37,"props":3531,"children":3532},{"style":44},[3533],{"type":14,"value":80},{"type":9,"tag":37,"props":3535,"children":3536},{"class":39,"line":328},[3537],{"type":9,"tag":37,"props":3538,"children":3539},{"emptyLinePlaceholder":270},[3540],{"type":14,"value":273},{"type":9,"tag":37,"props":3542,"children":3543},{"class":39,"line":345},[3544,3548,3552],{"type":9,"tag":37,"props":3545,"children":3546},{"style":44},[3547],{"type":14,"value":47},{"type":9,"tag":37,"props":3549,"children":3550},{"style":50},[3551],{"type":14,"value":338},{"type":9,"tag":37,"props":3553,"children":3554},{"style":44},[3555],{"type":14,"value":80},{"type":9,"tag":37,"props":3557,"children":3558},{"class":39,"line":377},[3559,3563,3567,3571,3575,3579],{"type":9,"tag":37,"props":3560,"children":3561},{"style":44},[3562],{"type":14,"value":351},{"type":9,"tag":37,"props":3564,"children":3565},{"style":50},[3566],{"type":14,"value":356},{"type":9,"tag":37,"props":3568,"children":3569},{"style":56},[3570],{"type":14,"value":361},{"type":9,"tag":37,"props":3572,"children":3573},{"style":44},[3574],{"type":14,"value":69},{"type":9,"tag":37,"props":3576,"children":3577},{"style":72},[3578],{"type":14,"value":370},{"type":9,"tag":37,"props":3580,"children":3581},{"style":44},[3582],{"type":14,"value":80},{"type":9,"tag":37,"props":3584,"children":3585},{"class":39,"line":407},[3586,3590,3595,3600,3604,3608,3613,3617,3622,3627,3631,3636],{"type":9,"tag":37,"props":3587,"children":3588},{"style":44},[3589],{"type":14,"value":383},{"type":9,"tag":37,"props":3591,"children":3592},{"style":50},[3593],{"type":14,"value":3594},"UFileUpload",{"type":9,"tag":37,"props":3596,"children":3597},{"style":56},[3598],{"type":14,"value":3599}," v-model",{"type":9,"tag":37,"props":3601,"children":3602},{"style":44},[3603],{"type":14,"value":69},{"type":9,"tag":37,"props":3605,"children":3606},{"style":72},[3607],{"type":14,"value":441},{"type":9,"tag":37,"props":3609,"children":3610},{"style":44},[3611],{"type":14,"value":3612},"selected",{"type":9,"tag":37,"props":3614,"children":3615},{"style":72},[3616],{"type":14,"value":441},{"type":9,"tag":37,"props":3618,"children":3619},{"style":56},[3620],{"type":14,"value":3621}," multiple",{"type":9,"tag":37,"props":3623,"children":3624},{"style":56},[3625],{"type":14,"value":3626}," label",{"type":9,"tag":37,"props":3628,"children":3629},{"style":44},[3630],{"type":14,"value":69},{"type":9,"tag":37,"props":3632,"children":3633},{"style":72},[3634],{"type":14,"value":3635},"\"拖拽或点击选择文件\"",{"type":9,"tag":37,"props":3637,"children":3638},{"style":44},[3639],{"type":14,"value":913},{"type":9,"tag":37,"props":3641,"children":3642},{"class":39,"line":421},[3643,3647,3651,3655,3659,3663],{"type":9,"tag":37,"props":3644,"children":3645},{"style":44},[3646],{"type":14,"value":383},{"type":9,"tag":37,"props":3648,"children":3649},{"style":50},[3650],{"type":14,"value":356},{"type":9,"tag":37,"props":3652,"children":3653},{"style":56},[3654],{"type":14,"value":361},{"type":9,"tag":37,"props":3656,"children":3657},{"style":44},[3658],{"type":14,"value":69},{"type":9,"tag":37,"props":3660,"children":3661},{"style":72},[3662],{"type":14,"value":400},{"type":9,"tag":37,"props":3664,"children":3665},{"style":44},[3666],{"type":14,"value":80},{"type":9,"tag":37,"props":3668,"children":3669},{"class":39,"line":459},[3670,3674],{"type":9,"tag":37,"props":3671,"children":3672},{"style":44},[3673],{"type":14,"value":413},{"type":9,"tag":37,"props":3675,"children":3676},{"style":50},[3677],{"type":14,"value":418},{"type":9,"tag":37,"props":3679,"children":3680},{"class":39,"line":483},[3681,3685,3689,3693,3697,3701,3705],{"type":9,"tag":37,"props":3682,"children":3683},{"style":44},[3684],{"type":14,"value":427},{"type":9,"tag":37,"props":3686,"children":3687},{"style":56},[3688],{"type":14,"value":432},{"type":9,"tag":37,"props":3690,"children":3691},{"style":44},[3692],{"type":14,"value":69},{"type":9,"tag":37,"props":3694,"children":3695},{"style":72},[3696],{"type":14,"value":441},{"type":9,"tag":37,"props":3698,"children":3699},{"style":44},[3700],{"type":14,"value":446},{"type":9,"tag":37,"props":3702,"children":3703},{"style":87},[3704],{"type":14,"value":451},{"type":9,"tag":37,"props":3706,"children":3707},{"style":72},[3708],{"type":14,"value":456},{"type":9,"tag":37,"props":3710,"children":3711},{"class":39,"line":535},[3712,3716,3721,3725,3729,3734,3739,3744],{"type":9,"tag":37,"props":3713,"children":3714},{"style":44},[3715],{"type":14,"value":427},{"type":9,"tag":37,"props":3717,"children":3718},{"style":56},[3719],{"type":14,"value":3720},"disabled",{"type":9,"tag":37,"props":3722,"children":3723},{"style":44},[3724],{"type":14,"value":69},{"type":9,"tag":37,"props":3726,"children":3727},{"style":72},[3728],{"type":14,"value":441},{"type":9,"tag":37,"props":3730,"children":3731},{"style":87},[3732],{"type":14,"value":3733},"!",{"type":9,"tag":37,"props":3735,"children":3736},{"style":44},[3737],{"type":14,"value":3738},"selected?.",{"type":9,"tag":37,"props":3740,"children":3741},{"style":93},[3742],{"type":14,"value":3743},"length",{"type":9,"tag":37,"props":3745,"children":3746},{"style":72},[3747],{"type":14,"value":532},{"type":9,"tag":37,"props":3749,"children":3750},{"class":39,"line":544},[3751,3755,3759],{"type":9,"tag":37,"props":3752,"children":3753},{"style":56},[3754],{"type":14,"value":465},{"type":9,"tag":37,"props":3756,"children":3757},{"style":44},[3758],{"type":14,"value":69},{"type":9,"tag":37,"props":3760,"children":3761},{"style":72},[3762,3766],{"type":9,"tag":474,"props":3763,"children":3765},{"class":476,"style":3764},"--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Fupload.svg?color=%23000)",[],{"type":14,"value":3767},"\"i-lucide-upload\"\n",{"type":9,"tag":37,"props":3769,"children":3770},{"class":39,"line":553},[3771,3775,3779,3783,3787,3791,3796,3800,3805,3810,3814,3819,3824,3828],{"type":9,"tag":37,"props":3772,"children":3773},{"style":44},[3774],{"type":14,"value":489},{"type":9,"tag":37,"props":3776,"children":3777},{"style":56},[3778],{"type":14,"value":494},{"type":9,"tag":37,"props":3780,"children":3781},{"style":44},[3782],{"type":14,"value":69},{"type":9,"tag":37,"props":3784,"children":3785},{"style":72},[3786],{"type":14,"value":441},{"type":9,"tag":37,"props":3788,"children":3789},{"style":44},[3790],{"type":14,"value":507},{"type":9,"tag":37,"props":3792,"children":3793},{"style":56},[3794],{"type":14,"value":3795},"upload",{"type":9,"tag":37,"props":3797,"children":3798},{"style":44},[3799],{"type":14,"value":517},{"type":9,"tag":37,"props":3801,"children":3802},{"style":72},[3803],{"type":14,"value":3804},"'\u002Fupload'",{"type":9,"tag":37,"props":3806,"children":3807},{"style":44},[3808],{"type":14,"value":3809},", selected",{"type":9,"tag":37,"props":3811,"children":3812},{"style":87},[3813],{"type":14,"value":3733},{"type":9,"tag":37,"props":3815,"children":3816},{"style":44},[3817],{"type":14,"value":3818},", { fieldName: ",{"type":9,"tag":37,"props":3820,"children":3821},{"style":72},[3822],{"type":14,"value":3823},"'files'",{"type":9,"tag":37,"props":3825,"children":3826},{"style":44},[3827],{"type":14,"value":2161},{"type":9,"tag":37,"props":3829,"children":3830},{"style":72},[3831],{"type":14,"value":532},{"type":9,"tag":37,"props":3833,"children":3834},{"class":39,"line":571},[3835],{"type":9,"tag":37,"props":3836,"children":3837},{"style":44},[3838],{"type":14,"value":541},{"type":9,"tag":37,"props":3840,"children":3841},{"class":39,"line":583},[3842],{"type":9,"tag":37,"props":3843,"children":3844},{"style":44},[3845],{"type":14,"value":3846},"        开始上传\n",{"type":9,"tag":37,"props":3848,"children":3849},{"class":39,"line":612},[3850,3854,3858],{"type":9,"tag":37,"props":3851,"children":3852},{"style":44},[3853],{"type":14,"value":559},{"type":9,"tag":37,"props":3855,"children":3856},{"style":50},[3857],{"type":14,"value":564},{"type":9,"tag":37,"props":3859,"children":3860},{"style":44},[3861],{"type":14,"value":80},{"type":9,"tag":37,"props":3863,"children":3864},{"class":39,"line":630},[3865,3869],{"type":9,"tag":37,"props":3866,"children":3867},{"style":44},[3868],{"type":14,"value":413},{"type":9,"tag":37,"props":3870,"children":3871},{"style":50},[3872],{"type":14,"value":418},{"type":9,"tag":37,"props":3874,"children":3875},{"class":39,"line":648},[3876,3880,3884,3888,3892,3896],{"type":9,"tag":37,"props":3877,"children":3878},{"style":87},[3879],{"type":14,"value":589},{"type":9,"tag":37,"props":3881,"children":3882},{"style":44},[3883],{"type":14,"value":69},{"type":9,"tag":37,"props":3885,"children":3886},{"style":72},[3887],{"type":14,"value":441},{"type":9,"tag":37,"props":3889,"children":3890},{"style":44},[3891],{"type":14,"value":446},{"type":9,"tag":37,"props":3893,"children":3894},{"style":87},[3895],{"type":14,"value":451},{"type":9,"tag":37,"props":3897,"children":3898},{"style":72},[3899],{"type":14,"value":456},{"type":9,"tag":37,"props":3901,"children":3902},{"class":39,"line":669},[3903,3907,3911],{"type":9,"tag":37,"props":3904,"children":3905},{"style":56},[3906],{"type":14,"value":618},{"type":9,"tag":37,"props":3908,"children":3909},{"style":44},[3910],{"type":14,"value":69},{"type":9,"tag":37,"props":3912,"children":3913},{"style":72},[3914],{"type":14,"value":627},{"type":9,"tag":37,"props":3916,"children":3917},{"class":39,"line":698},[3918,3922,3926],{"type":9,"tag":37,"props":3919,"children":3920},{"style":56},[3921],{"type":14,"value":636},{"type":9,"tag":37,"props":3923,"children":3924},{"style":44},[3925],{"type":14,"value":69},{"type":9,"tag":37,"props":3927,"children":3928},{"style":72},[3929],{"type":14,"value":645},{"type":9,"tag":37,"props":3931,"children":3932},{"class":39,"line":706},[3933,3937,3941],{"type":9,"tag":37,"props":3934,"children":3935},{"style":56},[3936],{"type":14,"value":465},{"type":9,"tag":37,"props":3938,"children":3939},{"style":44},[3940],{"type":14,"value":69},{"type":9,"tag":37,"props":3942,"children":3943},{"style":72},[3944,3947],{"type":9,"tag":474,"props":3945,"children":3946},{"class":476,"style":663},[],{"type":14,"value":666},{"type":9,"tag":37,"props":3949,"children":3950},{"class":39,"line":715},[3951,3955,3959,3963,3967,3971],{"type":9,"tag":37,"props":3952,"children":3953},{"style":44},[3954],{"type":14,"value":489},{"type":9,"tag":37,"props":3956,"children":3957},{"style":56},[3958],{"type":14,"value":494},{"type":9,"tag":37,"props":3960,"children":3961},{"style":44},[3962],{"type":14,"value":69},{"type":9,"tag":37,"props":3964,"children":3965},{"style":72},[3966],{"type":14,"value":441},{"type":9,"tag":37,"props":3968,"children":3969},{"style":44},[3970],{"type":14,"value":691},{"type":9,"tag":37,"props":3972,"children":3973},{"style":72},[3974],{"type":14,"value":532},{"type":9,"tag":37,"props":3976,"children":3977},{"class":39,"line":731},[3978],{"type":9,"tag":37,"props":3979,"children":3980},{"style":44},[3981],{"type":14,"value":541},{"type":9,"tag":37,"props":3983,"children":3984},{"class":39,"line":794},[3985],{"type":9,"tag":37,"props":3986,"children":3987},{"style":44},[3988],{"type":14,"value":712},{"type":9,"tag":37,"props":3990,"children":3991},{"class":39,"line":803},[3992,3996,4000],{"type":9,"tag":37,"props":3993,"children":3994},{"style":44},[3995],{"type":14,"value":559},{"type":9,"tag":37,"props":3997,"children":3998},{"style":50},[3999],{"type":14,"value":564},{"type":9,"tag":37,"props":4001,"children":4002},{"style":44},[4003],{"type":14,"value":80},{"type":9,"tag":37,"props":4005,"children":4006},{"class":39,"line":819},[4007,4011,4015,4019,4023,4027,4031,4035,4039,4043,4047,4051,4055],{"type":9,"tag":37,"props":4008,"children":4009},{"style":44},[4010],{"type":14,"value":413},{"type":9,"tag":37,"props":4012,"children":4013},{"style":50},[4014],{"type":14,"value":741},{"type":9,"tag":37,"props":4016,"children":4017},{"style":44},[4018],{"type":14,"value":746},{"type":9,"tag":37,"props":4020,"children":4021},{"style":56},[4022],{"type":14,"value":751},{"type":9,"tag":37,"props":4024,"children":4025},{"style":44},[4026],{"type":14,"value":69},{"type":9,"tag":37,"props":4028,"children":4029},{"style":72},[4030],{"type":14,"value":441},{"type":9,"tag":37,"props":4032,"children":4033},{"style":93},[4034],{"type":14,"value":764},{"type":9,"tag":37,"props":4036,"children":4037},{"style":44},[4038],{"type":14,"value":769},{"type":9,"tag":37,"props":4040,"children":4041},{"style":72},[4042],{"type":14,"value":441},{"type":9,"tag":37,"props":4044,"children":4045},{"style":56},[4046],{"type":14,"value":778},{"type":9,"tag":37,"props":4048,"children":4049},{"style":44},[4050],{"type":14,"value":69},{"type":9,"tag":37,"props":4052,"children":4053},{"style":72},[4054],{"type":14,"value":787},{"type":9,"tag":37,"props":4056,"children":4057},{"style":44},[4058],{"type":14,"value":80},{"type":9,"tag":37,"props":4060,"children":4061},{"class":39,"line":836},[4062],{"type":9,"tag":37,"props":4063,"children":4064},{"style":44},[4065],{"type":14,"value":800},{"type":9,"tag":37,"props":4067,"children":4068},{"class":39,"line":916},[4069,4073,4077],{"type":9,"tag":37,"props":4070,"children":4071},{"style":44},[4072],{"type":14,"value":559},{"type":9,"tag":37,"props":4074,"children":4075},{"style":50},[4076],{"type":14,"value":741},{"type":9,"tag":37,"props":4078,"children":4079},{"style":44},[4080],{"type":14,"value":80},{"type":9,"tag":37,"props":4082,"children":4083},{"class":39,"line":929},[4084,4088,4092],{"type":9,"tag":37,"props":4085,"children":4086},{"style":44},[4087],{"type":14,"value":825},{"type":9,"tag":37,"props":4089,"children":4090},{"style":50},[4091],{"type":14,"value":356},{"type":9,"tag":37,"props":4093,"children":4094},{"style":44},[4095],{"type":14,"value":80},{"type":9,"tag":37,"props":4097,"children":4098},{"class":39,"line":955},[4099,4103,4107,4111,4115,4119,4123,4127,4131,4135,4139,4143,4147,4151,4155,4159,4163],{"type":9,"tag":37,"props":4100,"children":4101},{"style":44},[4102],{"type":14,"value":383},{"type":9,"tag":37,"props":4104,"children":4105},{"style":50},[4106],{"type":14,"value":846},{"type":9,"tag":37,"props":4108,"children":4109},{"style":44},[4110],{"type":14,"value":746},{"type":9,"tag":37,"props":4112,"children":4113},{"style":56},[4114],{"type":14,"value":855},{"type":9,"tag":37,"props":4116,"children":4117},{"style":44},[4118],{"type":14,"value":69},{"type":9,"tag":37,"props":4120,"children":4121},{"style":72},[4122],{"type":14,"value":441},{"type":9,"tag":37,"props":4124,"children":4125},{"style":44},[4126],{"type":14,"value":868},{"type":9,"tag":37,"props":4128,"children":4129},{"style":87},[4130],{"type":14,"value":873},{"type":9,"tag":37,"props":4132,"children":4133},{"style":93},[4134],{"type":14,"value":878},{"type":9,"tag":37,"props":4136,"children":4137},{"style":72},[4138],{"type":14,"value":441},{"type":9,"tag":37,"props":4140,"children":4141},{"style":44},[4142],{"type":14,"value":746},{"type":9,"tag":37,"props":4144,"children":4145},{"style":56},[4146],{"type":14,"value":891},{"type":9,"tag":37,"props":4148,"children":4149},{"style":44},[4150],{"type":14,"value":69},{"type":9,"tag":37,"props":4152,"children":4153},{"style":72},[4154],{"type":14,"value":441},{"type":9,"tag":37,"props":4156,"children":4157},{"style":93},[4158],{"type":14,"value":904},{"type":9,"tag":37,"props":4160,"children":4161},{"style":72},[4162],{"type":14,"value":441},{"type":9,"tag":37,"props":4164,"children":4165},{"style":44},[4166],{"type":14,"value":913},{"type":9,"tag":37,"props":4168,"children":4169},{"class":39,"line":972},[4170,4174],{"type":9,"tag":37,"props":4171,"children":4172},{"style":44},[4173],{"type":14,"value":383},{"type":9,"tag":37,"props":4175,"children":4176},{"style":50},[4177],{"type":14,"value":926},{"type":9,"tag":37,"props":4179,"children":4180},{"class":39,"line":990},[4181,4185,4189,4193,4197],{"type":9,"tag":37,"props":4182,"children":4183},{"style":87},[4184],{"type":14,"value":935},{"type":9,"tag":37,"props":4186,"children":4187},{"style":44},[4188],{"type":14,"value":69},{"type":9,"tag":37,"props":4190,"children":4191},{"style":72},[4192],{"type":14,"value":441},{"type":9,"tag":37,"props":4194,"children":4195},{"style":44},[4196],{"type":14,"value":948},{"type":9,"tag":37,"props":4198,"children":4199},{"style":72},[4200],{"type":14,"value":532},{"type":9,"tag":37,"props":4202,"children":4203},{"class":39,"line":1021},[4204,4208,4212],{"type":9,"tag":37,"props":4205,"children":4206},{"style":56},[4207],{"type":14,"value":961},{"type":9,"tag":37,"props":4209,"children":4210},{"style":44},[4211],{"type":14,"value":69},{"type":9,"tag":37,"props":4213,"children":4214},{"style":72},[4215],{"type":14,"value":627},{"type":9,"tag":37,"props":4217,"children":4218},{"class":39,"line":1030},[4219,4223,4227],{"type":9,"tag":37,"props":4220,"children":4221},{"style":56},[4222],{"type":14,"value":978},{"type":9,"tag":37,"props":4224,"children":4225},{"style":44},[4226],{"type":14,"value":69},{"type":9,"tag":37,"props":4228,"children":4229},{"style":72},[4230],{"type":14,"value":987},{"type":9,"tag":37,"props":4232,"children":4233},{"class":39,"line":1047},[4234,4238,4242,4246,4250,4254],{"type":9,"tag":37,"props":4235,"children":4236},{"style":44},[4237],{"type":14,"value":996},{"type":9,"tag":37,"props":4239,"children":4240},{"style":56},[4241],{"type":14,"value":1001},{"type":9,"tag":37,"props":4243,"children":4244},{"style":44},[4245],{"type":14,"value":69},{"type":9,"tag":37,"props":4247,"children":4248},{"style":72},[4249],{"type":14,"value":441},{"type":9,"tag":37,"props":4251,"children":4252},{"style":44},[4253],{"type":14,"value":1014},{"type":9,"tag":37,"props":4255,"children":4256},{"style":72},[4257],{"type":14,"value":532},{"type":9,"tag":37,"props":4259,"children":4261},{"class":39,"line":4260},45,[4262],{"type":9,"tag":37,"props":4263,"children":4264},{"style":44},[4265],{"type":14,"value":1027},{"type":9,"tag":37,"props":4267,"children":4269},{"class":39,"line":4268},46,[4270,4274,4279,4284,4288,4292,4297,4301],{"type":9,"tag":37,"props":4271,"children":4272},{"style":44},[4273],{"type":14,"value":383},{"type":9,"tag":37,"props":4275,"children":4276},{"style":50},[4277],{"type":14,"value":4278},"UCard",{"type":9,"tag":37,"props":4280,"children":4281},{"style":87},[4282],{"type":14,"value":4283}," v-if",{"type":9,"tag":37,"props":4285,"children":4286},{"style":44},[4287],{"type":14,"value":69},{"type":9,"tag":37,"props":4289,"children":4290},{"style":72},[4291],{"type":14,"value":441},{"type":9,"tag":37,"props":4293,"children":4294},{"style":44},[4295],{"type":14,"value":4296},"basic.data.value",{"type":9,"tag":37,"props":4298,"children":4299},{"style":72},[4300],{"type":14,"value":441},{"type":9,"tag":37,"props":4302,"children":4303},{"style":44},[4304],{"type":14,"value":80},{"type":9,"tag":37,"props":4306,"children":4308},{"class":39,"line":4307},47,[4309,4313,4317,4321,4325,4330,4335,4339],{"type":9,"tag":37,"props":4310,"children":4311},{"style":44},[4312],{"type":14,"value":413},{"type":9,"tag":37,"props":4314,"children":4315},{"style":50},[4316],{"type":14,"value":26},{"type":9,"tag":37,"props":4318,"children":4319},{"style":56},[4320],{"type":14,"value":361},{"type":9,"tag":37,"props":4322,"children":4323},{"style":44},[4324],{"type":14,"value":69},{"type":9,"tag":37,"props":4326,"children":4327},{"style":72},[4328],{"type":14,"value":4329},"\"text-xs overflow-auto\"",{"type":9,"tag":37,"props":4331,"children":4332},{"style":44},[4333],{"type":14,"value":4334},">{{ basic.data.value }}\u003C\u002F",{"type":9,"tag":37,"props":4336,"children":4337},{"style":50},[4338],{"type":14,"value":26},{"type":9,"tag":37,"props":4340,"children":4341},{"style":44},[4342],{"type":14,"value":80},{"type":9,"tag":37,"props":4344,"children":4346},{"class":39,"line":4345},48,[4347,4351,4355],{"type":9,"tag":37,"props":4348,"children":4349},{"style":44},[4350],{"type":14,"value":825},{"type":9,"tag":37,"props":4352,"children":4353},{"style":50},[4354],{"type":14,"value":4278},{"type":9,"tag":37,"props":4356,"children":4357},{"style":44},[4358],{"type":14,"value":80},{"type":9,"tag":37,"props":4360,"children":4362},{"class":39,"line":4361},49,[4363,4367,4371],{"type":9,"tag":37,"props":4364,"children":4365},{"style":44},[4366],{"type":14,"value":1036},{"type":9,"tag":37,"props":4368,"children":4369},{"style":50},[4370],{"type":14,"value":356},{"type":9,"tag":37,"props":4372,"children":4373},{"style":44},[4374],{"type":14,"value":80},{"type":9,"tag":37,"props":4376,"children":4378},{"class":39,"line":4377},50,[4379,4383,4387],{"type":9,"tag":37,"props":4380,"children":4381},{"style":44},[4382],{"type":14,"value":309},{"type":9,"tag":37,"props":4384,"children":4385},{"style":50},[4386],{"type":14,"value":338},{"type":9,"tag":37,"props":4388,"children":4389},{"style":44},[4390],{"type":14,"value":80},{"type":9,"tag":1062,"props":4392,"children":4393},{},[4394],{"type":14,"value":1066},{"title":22,"searchDepth":83,"depth":83,"links":4396},[],{"code":4398,"filePath":4399,"pascalName":4400},"\u003Cscript setup lang=\"ts\">\nconst STATUS = {\n  idle: { color: 'neutral', label: '空闲' },\n  pending: { color: 'info', label: '上传中' },\n  success: { color: 'success', label: '完成' },\n  error: { color: 'error', label: '失败' },\n  aborted: { color: 'warning', label: '已取消' }\n} as const\n\nconst selected = ref\u003CFile | null>(null)\nconst single = useUploadWithProgress()\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUFileUpload v-model=\"selected\" label=\"选择单个文件\" \u002F>\n    \u003Cdiv class=\"flex items-center gap-2\">\n      \u003CUButton\n        :loading=\"single.status.value === 'pending'\"\n        :disabled=\"!selected\"\n        icon=\"i-lucide-upload-cloud\"\n        @click=\"single.upload('\u002Fupload', selected!, {\n          fields: { folder: 'avatars', visibility: 'private' }\n        })\"\n      >\n        上传文件（携带 fields）\n      \u003C\u002FUButton>\n      \u003CUBadge :color=\"STATUS[single.status.value].color\" variant=\"subtle\">\n        {{ single.progress.value ?? 0 }}% · {{ STATUS[single.status.value].label }}\n      \u003C\u002FUBadge>\n    \u003C\u002Fdiv>\n    \u003CUAlert\n      v-if=\"single.error.value\"\n      color=\"error\"\n      variant=\"subtle\"\n      :description=\"single.error.value.message\"\n    \u002F>\n    \u003CUCard v-if=\"single.data.value\">\n      \u003Cpre class=\"text-xs overflow-auto\">{{ single.data.value }}\u003C\u002Fpre>\n    \u003C\u002FUCard>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fcomposables\u002Fuse-upload-progress\u002FComposablesUseUploadProgressSingleExample.vue","ComposablesUseUploadProgressSingleExample",{"data":4402,"body":4403,"toc":5335},{"title":22,"description":22},{"type":6,"children":4404},[4405,5331],{"type":9,"tag":26,"props":4406,"children":4408},{"className":28,"code":4407,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nconst STATUS = {\n  idle: { color: 'neutral', label: '空闲' },\n  pending: { color: 'info', label: '上传中' },\n  success: { color: 'success', label: '完成' },\n  error: { color: 'error', label: '失败' },\n  aborted: { color: 'warning', label: '已取消' }\n} as const\n\nconst selected = ref\u003CFile | null>(null)\nconst single = useUploadWithProgress()\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUFileUpload v-model=\"selected\" label=\"选择单个文件\" \u002F>\n    \u003Cdiv class=\"flex items-center gap-2\">\n      \u003CUButton\n        :loading=\"single.status.value === 'pending'\"\n        :disabled=\"!selected\"\n        icon=\"i-lucide-upload-cloud\"\n        @click=\"single.upload('\u002Fupload', selected!, {\n          fields: { folder: 'avatars', visibility: 'private' }\n        })\"\n      >\n        上传文件（携带 fields）\n      \u003C\u002FUButton>\n      \u003CUBadge :color=\"STATUS[single.status.value].color\" variant=\"subtle\">\n        {{ single.progress.value ?? 0 }}% · {{ STATUS[single.status.value].label }}\n      \u003C\u002FUBadge>\n    \u003C\u002Fdiv>\n    \u003CUAlert\n      v-if=\"single.error.value\"\n      color=\"error\"\n      variant=\"subtle\"\n      :description=\"single.error.value.message\"\n    \u002F>\n    \u003CUCard v-if=\"single.data.value\">\n      \u003Cpre class=\"text-xs overflow-auto\">{{ single.data.value }}\u003C\u002Fpre>\n    \u003C\u002FUCard>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[4409],{"type":9,"tag":33,"props":4410,"children":4411},{"__ignoreMap":22},[4412,4443,4462,4485,4508,4531,4554,4577,4592,4599,4647,4671,4686,4693,4708,4735,4783,4810,4821,4853,4884,4904,4952,4979,4990,4997,5005,5020,5076,5084,5099,5114,5125,5149,5164,5179,5207,5214,5250,5286,5301,5316],{"type":9,"tag":37,"props":4413,"children":4414},{"class":39,"line":40},[4415,4419,4423,4427,4431,4435,4439],{"type":9,"tag":37,"props":4416,"children":4417},{"style":44},[4418],{"type":14,"value":47},{"type":9,"tag":37,"props":4420,"children":4421},{"style":50},[4422],{"type":14,"value":53},{"type":9,"tag":37,"props":4424,"children":4425},{"style":56},[4426],{"type":14,"value":59},{"type":9,"tag":37,"props":4428,"children":4429},{"style":56},[4430],{"type":14,"value":64},{"type":9,"tag":37,"props":4432,"children":4433},{"style":44},[4434],{"type":14,"value":69},{"type":9,"tag":37,"props":4436,"children":4437},{"style":72},[4438],{"type":14,"value":75},{"type":9,"tag":37,"props":4440,"children":4441},{"style":44},[4442],{"type":14,"value":80},{"type":9,"tag":37,"props":4444,"children":4445},{"class":39,"line":83},[4446,4450,4454,4458],{"type":9,"tag":37,"props":4447,"children":4448},{"style":87},[4449],{"type":14,"value":90},{"type":9,"tag":37,"props":4451,"children":4452},{"style":93},[4453],{"type":14,"value":96},{"type":9,"tag":37,"props":4455,"children":4456},{"style":87},[4457],{"type":14,"value":101},{"type":9,"tag":37,"props":4459,"children":4460},{"style":44},[4461],{"type":14,"value":106},{"type":9,"tag":37,"props":4463,"children":4464},{"class":39,"line":109},[4465,4469,4473,4477,4481],{"type":9,"tag":37,"props":4466,"children":4467},{"style":44},[4468],{"type":14,"value":115},{"type":9,"tag":37,"props":4470,"children":4471},{"style":72},[4472],{"type":14,"value":120},{"type":9,"tag":37,"props":4474,"children":4475},{"style":44},[4476],{"type":14,"value":125},{"type":9,"tag":37,"props":4478,"children":4479},{"style":72},[4480],{"type":14,"value":130},{"type":9,"tag":37,"props":4482,"children":4483},{"style":44},[4484],{"type":14,"value":135},{"type":9,"tag":37,"props":4486,"children":4487},{"class":39,"line":138},[4488,4492,4496,4500,4504],{"type":9,"tag":37,"props":4489,"children":4490},{"style":44},[4491],{"type":14,"value":144},{"type":9,"tag":37,"props":4493,"children":4494},{"style":72},[4495],{"type":14,"value":149},{"type":9,"tag":37,"props":4497,"children":4498},{"style":44},[4499],{"type":14,"value":125},{"type":9,"tag":37,"props":4501,"children":4502},{"style":72},[4503],{"type":14,"value":3281},{"type":9,"tag":37,"props":4505,"children":4506},{"style":44},[4507],{"type":14,"value":135},{"type":9,"tag":37,"props":4509,"children":4510},{"class":39,"line":165},[4511,4515,4519,4523,4527],{"type":9,"tag":37,"props":4512,"children":4513},{"style":44},[4514],{"type":14,"value":171},{"type":9,"tag":37,"props":4516,"children":4517},{"style":72},[4518],{"type":14,"value":176},{"type":9,"tag":37,"props":4520,"children":4521},{"style":44},[4522],{"type":14,"value":125},{"type":9,"tag":37,"props":4524,"children":4525},{"style":72},[4526],{"type":14,"value":185},{"type":9,"tag":37,"props":4528,"children":4529},{"style":44},[4530],{"type":14,"value":135},{"type":9,"tag":37,"props":4532,"children":4533},{"class":39,"line":192},[4534,4538,4542,4546,4550],{"type":9,"tag":37,"props":4535,"children":4536},{"style":44},[4537],{"type":14,"value":198},{"type":9,"tag":37,"props":4539,"children":4540},{"style":72},[4541],{"type":14,"value":203},{"type":9,"tag":37,"props":4543,"children":4544},{"style":44},[4545],{"type":14,"value":125},{"type":9,"tag":37,"props":4547,"children":4548},{"style":72},[4549],{"type":14,"value":212},{"type":9,"tag":37,"props":4551,"children":4552},{"style":44},[4553],{"type":14,"value":135},{"type":9,"tag":37,"props":4555,"children":4556},{"class":39,"line":219},[4557,4561,4565,4569,4573],{"type":9,"tag":37,"props":4558,"children":4559},{"style":44},[4560],{"type":14,"value":225},{"type":9,"tag":37,"props":4562,"children":4563},{"style":72},[4564],{"type":14,"value":230},{"type":9,"tag":37,"props":4566,"children":4567},{"style":44},[4568],{"type":14,"value":125},{"type":9,"tag":37,"props":4570,"children":4571},{"style":72},[4572],{"type":14,"value":239},{"type":9,"tag":37,"props":4574,"children":4575},{"style":44},[4576],{"type":14,"value":244},{"type":9,"tag":37,"props":4578,"children":4579},{"class":39,"line":247},[4580,4584,4588],{"type":9,"tag":37,"props":4581,"children":4582},{"style":44},[4583],{"type":14,"value":253},{"type":9,"tag":37,"props":4585,"children":4586},{"style":87},[4587],{"type":14,"value":258},{"type":9,"tag":37,"props":4589,"children":4590},{"style":87},[4591],{"type":14,"value":263},{"type":9,"tag":37,"props":4593,"children":4594},{"class":39,"line":266},[4595],{"type":9,"tag":37,"props":4596,"children":4597},{"emptyLinePlaceholder":270},[4598],{"type":14,"value":273},{"type":9,"tag":37,"props":4600,"children":4601},{"class":39,"line":276},[4602,4606,4610,4614,4618,4622,4626,4631,4635,4639,4643],{"type":9,"tag":37,"props":4603,"children":4604},{"style":87},[4605],{"type":14,"value":90},{"type":9,"tag":37,"props":4607,"children":4608},{"style":93},[4609],{"type":14,"value":3388},{"type":9,"tag":37,"props":4611,"children":4612},{"style":87},[4613],{"type":14,"value":101},{"type":9,"tag":37,"props":4615,"children":4616},{"style":56},[4617],{"type":14,"value":3397},{"type":9,"tag":37,"props":4619,"children":4620},{"style":44},[4621],{"type":14,"value":47},{"type":9,"tag":37,"props":4623,"children":4624},{"style":56},[4625],{"type":14,"value":3406},{"type":9,"tag":37,"props":4627,"children":4628},{"style":87},[4629],{"type":14,"value":4630}," |",{"type":9,"tag":37,"props":4632,"children":4633},{"style":93},[4634],{"type":14,"value":3421},{"type":9,"tag":37,"props":4636,"children":4637},{"style":44},[4638],{"type":14,"value":3426},{"type":9,"tag":37,"props":4640,"children":4641},{"style":93},[4642],{"type":14,"value":3431},{"type":9,"tag":37,"props":4644,"children":4645},{"style":44},[4646],{"type":14,"value":3436},{"type":9,"tag":37,"props":4648,"children":4649},{"class":39,"line":303},[4650,4654,4659,4663,4667],{"type":9,"tag":37,"props":4651,"children":4652},{"style":87},[4653],{"type":14,"value":90},{"type":9,"tag":37,"props":4655,"children":4656},{"style":93},[4657],{"type":14,"value":4658}," single",{"type":9,"tag":37,"props":4660,"children":4661},{"style":87},[4662],{"type":14,"value":101},{"type":9,"tag":37,"props":4664,"children":4665},{"style":56},[4666],{"type":14,"value":3456},{"type":9,"tag":37,"props":4668,"children":4669},{"style":44},[4670],{"type":14,"value":300},{"type":9,"tag":37,"props":4672,"children":4673},{"class":39,"line":320},[4674,4678,4682],{"type":9,"tag":37,"props":4675,"children":4676},{"style":44},[4677],{"type":14,"value":309},{"type":9,"tag":37,"props":4679,"children":4680},{"style":50},[4681],{"type":14,"value":53},{"type":9,"tag":37,"props":4683,"children":4684},{"style":44},[4685],{"type":14,"value":80},{"type":9,"tag":37,"props":4687,"children":4688},{"class":39,"line":328},[4689],{"type":9,"tag":37,"props":4690,"children":4691},{"emptyLinePlaceholder":270},[4692],{"type":14,"value":273},{"type":9,"tag":37,"props":4694,"children":4695},{"class":39,"line":345},[4696,4700,4704],{"type":9,"tag":37,"props":4697,"children":4698},{"style":44},[4699],{"type":14,"value":47},{"type":9,"tag":37,"props":4701,"children":4702},{"style":50},[4703],{"type":14,"value":338},{"type":9,"tag":37,"props":4705,"children":4706},{"style":44},[4707],{"type":14,"value":80},{"type":9,"tag":37,"props":4709,"children":4710},{"class":39,"line":377},[4711,4715,4719,4723,4727,4731],{"type":9,"tag":37,"props":4712,"children":4713},{"style":44},[4714],{"type":14,"value":351},{"type":9,"tag":37,"props":4716,"children":4717},{"style":50},[4718],{"type":14,"value":356},{"type":9,"tag":37,"props":4720,"children":4721},{"style":56},[4722],{"type":14,"value":361},{"type":9,"tag":37,"props":4724,"children":4725},{"style":44},[4726],{"type":14,"value":69},{"type":9,"tag":37,"props":4728,"children":4729},{"style":72},[4730],{"type":14,"value":370},{"type":9,"tag":37,"props":4732,"children":4733},{"style":44},[4734],{"type":14,"value":80},{"type":9,"tag":37,"props":4736,"children":4737},{"class":39,"line":407},[4738,4742,4746,4750,4754,4758,4762,4766,4770,4774,4779],{"type":9,"tag":37,"props":4739,"children":4740},{"style":44},[4741],{"type":14,"value":383},{"type":9,"tag":37,"props":4743,"children":4744},{"style":50},[4745],{"type":14,"value":3594},{"type":9,"tag":37,"props":4747,"children":4748},{"style":56},[4749],{"type":14,"value":3599},{"type":9,"tag":37,"props":4751,"children":4752},{"style":44},[4753],{"type":14,"value":69},{"type":9,"tag":37,"props":4755,"children":4756},{"style":72},[4757],{"type":14,"value":441},{"type":9,"tag":37,"props":4759,"children":4760},{"style":44},[4761],{"type":14,"value":3612},{"type":9,"tag":37,"props":4763,"children":4764},{"style":72},[4765],{"type":14,"value":441},{"type":9,"tag":37,"props":4767,"children":4768},{"style":56},[4769],{"type":14,"value":3626},{"type":9,"tag":37,"props":4771,"children":4772},{"style":44},[4773],{"type":14,"value":69},{"type":9,"tag":37,"props":4775,"children":4776},{"style":72},[4777],{"type":14,"value":4778},"\"选择单个文件\"",{"type":9,"tag":37,"props":4780,"children":4781},{"style":44},[4782],{"type":14,"value":913},{"type":9,"tag":37,"props":4784,"children":4785},{"class":39,"line":421},[4786,4790,4794,4798,4802,4806],{"type":9,"tag":37,"props":4787,"children":4788},{"style":44},[4789],{"type":14,"value":383},{"type":9,"tag":37,"props":4791,"children":4792},{"style":50},[4793],{"type":14,"value":356},{"type":9,"tag":37,"props":4795,"children":4796},{"style":56},[4797],{"type":14,"value":361},{"type":9,"tag":37,"props":4799,"children":4800},{"style":44},[4801],{"type":14,"value":69},{"type":9,"tag":37,"props":4803,"children":4804},{"style":72},[4805],{"type":14,"value":400},{"type":9,"tag":37,"props":4807,"children":4808},{"style":44},[4809],{"type":14,"value":80},{"type":9,"tag":37,"props":4811,"children":4812},{"class":39,"line":459},[4813,4817],{"type":9,"tag":37,"props":4814,"children":4815},{"style":44},[4816],{"type":14,"value":413},{"type":9,"tag":37,"props":4818,"children":4819},{"style":50},[4820],{"type":14,"value":418},{"type":9,"tag":37,"props":4822,"children":4823},{"class":39,"line":483},[4824,4828,4832,4836,4840,4845,4849],{"type":9,"tag":37,"props":4825,"children":4826},{"style":44},[4827],{"type":14,"value":427},{"type":9,"tag":37,"props":4829,"children":4830},{"style":56},[4831],{"type":14,"value":432},{"type":9,"tag":37,"props":4833,"children":4834},{"style":44},[4835],{"type":14,"value":69},{"type":9,"tag":37,"props":4837,"children":4838},{"style":72},[4839],{"type":14,"value":441},{"type":9,"tag":37,"props":4841,"children":4842},{"style":44},[4843],{"type":14,"value":4844},"single.status.value ",{"type":9,"tag":37,"props":4846,"children":4847},{"style":87},[4848],{"type":14,"value":451},{"type":9,"tag":37,"props":4850,"children":4851},{"style":72},[4852],{"type":14,"value":456},{"type":9,"tag":37,"props":4854,"children":4855},{"class":39,"line":535},[4856,4860,4864,4868,4872,4876,4880],{"type":9,"tag":37,"props":4857,"children":4858},{"style":44},[4859],{"type":14,"value":427},{"type":9,"tag":37,"props":4861,"children":4862},{"style":56},[4863],{"type":14,"value":3720},{"type":9,"tag":37,"props":4865,"children":4866},{"style":44},[4867],{"type":14,"value":69},{"type":9,"tag":37,"props":4869,"children":4870},{"style":72},[4871],{"type":14,"value":441},{"type":9,"tag":37,"props":4873,"children":4874},{"style":87},[4875],{"type":14,"value":3733},{"type":9,"tag":37,"props":4877,"children":4878},{"style":44},[4879],{"type":14,"value":3612},{"type":9,"tag":37,"props":4881,"children":4882},{"style":72},[4883],{"type":14,"value":532},{"type":9,"tag":37,"props":4885,"children":4886},{"class":39,"line":544},[4887,4891,4895],{"type":9,"tag":37,"props":4888,"children":4889},{"style":56},[4890],{"type":14,"value":465},{"type":9,"tag":37,"props":4892,"children":4893},{"style":44},[4894],{"type":14,"value":69},{"type":9,"tag":37,"props":4896,"children":4897},{"style":72},[4898,4902],{"type":9,"tag":474,"props":4899,"children":4901},{"class":476,"style":4900},"--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Fupload-cloud.svg?color=%23000)",[],{"type":14,"value":4903},"\"i-lucide-upload-cloud\"\n",{"type":9,"tag":37,"props":4905,"children":4906},{"class":39,"line":553},[4907,4911,4915,4919,4923,4928,4932,4936,4940,4944,4948],{"type":9,"tag":37,"props":4908,"children":4909},{"style":44},[4910],{"type":14,"value":489},{"type":9,"tag":37,"props":4912,"children":4913},{"style":56},[4914],{"type":14,"value":494},{"type":9,"tag":37,"props":4916,"children":4917},{"style":44},[4918],{"type":14,"value":69},{"type":9,"tag":37,"props":4920,"children":4921},{"style":72},[4922],{"type":14,"value":441},{"type":9,"tag":37,"props":4924,"children":4925},{"style":44},[4926],{"type":14,"value":4927},"single.",{"type":9,"tag":37,"props":4929,"children":4930},{"style":56},[4931],{"type":14,"value":3795},{"type":9,"tag":37,"props":4933,"children":4934},{"style":44},[4935],{"type":14,"value":517},{"type":9,"tag":37,"props":4937,"children":4938},{"style":72},[4939],{"type":14,"value":3804},{"type":9,"tag":37,"props":4941,"children":4942},{"style":44},[4943],{"type":14,"value":3809},{"type":9,"tag":37,"props":4945,"children":4946},{"style":87},[4947],{"type":14,"value":3733},{"type":9,"tag":37,"props":4949,"children":4950},{"style":44},[4951],{"type":14,"value":2846},{"type":9,"tag":37,"props":4953,"children":4954},{"class":39,"line":571},[4955,4960,4965,4970,4975],{"type":9,"tag":37,"props":4956,"children":4957},{"style":44},[4958],{"type":14,"value":4959},"          fields: { folder: ",{"type":9,"tag":37,"props":4961,"children":4962},{"style":72},[4963],{"type":14,"value":4964},"'avatars'",{"type":9,"tag":37,"props":4966,"children":4967},{"style":44},[4968],{"type":14,"value":4969},", visibility: ",{"type":9,"tag":37,"props":4971,"children":4972},{"style":72},[4973],{"type":14,"value":4974},"'private'",{"type":9,"tag":37,"props":4976,"children":4977},{"style":44},[4978],{"type":14,"value":244},{"type":9,"tag":37,"props":4980,"children":4981},{"class":39,"line":583},[4982,4986],{"type":9,"tag":37,"props":4983,"children":4984},{"style":44},[4985],{"type":14,"value":2909},{"type":9,"tag":37,"props":4987,"children":4988},{"style":72},[4989],{"type":14,"value":532},{"type":9,"tag":37,"props":4991,"children":4992},{"class":39,"line":612},[4993],{"type":9,"tag":37,"props":4994,"children":4995},{"style":44},[4996],{"type":14,"value":541},{"type":9,"tag":37,"props":4998,"children":4999},{"class":39,"line":630},[5000],{"type":9,"tag":37,"props":5001,"children":5002},{"style":44},[5003],{"type":14,"value":5004},"        上传文件（携带 fields）\n",{"type":9,"tag":37,"props":5006,"children":5007},{"class":39,"line":648},[5008,5012,5016],{"type":9,"tag":37,"props":5009,"children":5010},{"style":44},[5011],{"type":14,"value":559},{"type":9,"tag":37,"props":5013,"children":5014},{"style":50},[5015],{"type":14,"value":564},{"type":9,"tag":37,"props":5017,"children":5018},{"style":44},[5019],{"type":14,"value":80},{"type":9,"tag":37,"props":5021,"children":5022},{"class":39,"line":669},[5023,5027,5031,5035,5039,5043,5047,5051,5056,5060,5064,5068,5072],{"type":9,"tag":37,"props":5024,"children":5025},{"style":44},[5026],{"type":14,"value":413},{"type":9,"tag":37,"props":5028,"children":5029},{"style":50},[5030],{"type":14,"value":741},{"type":9,"tag":37,"props":5032,"children":5033},{"style":44},[5034],{"type":14,"value":746},{"type":9,"tag":37,"props":5036,"children":5037},{"style":56},[5038],{"type":14,"value":751},{"type":9,"tag":37,"props":5040,"children":5041},{"style":44},[5042],{"type":14,"value":69},{"type":9,"tag":37,"props":5044,"children":5045},{"style":72},[5046],{"type":14,"value":441},{"type":9,"tag":37,"props":5048,"children":5049},{"style":93},[5050],{"type":14,"value":764},{"type":9,"tag":37,"props":5052,"children":5053},{"style":44},[5054],{"type":14,"value":5055},"[single.status.value].color",{"type":9,"tag":37,"props":5057,"children":5058},{"style":72},[5059],{"type":14,"value":441},{"type":9,"tag":37,"props":5061,"children":5062},{"style":56},[5063],{"type":14,"value":778},{"type":9,"tag":37,"props":5065,"children":5066},{"style":44},[5067],{"type":14,"value":69},{"type":9,"tag":37,"props":5069,"children":5070},{"style":72},[5071],{"type":14,"value":787},{"type":9,"tag":37,"props":5073,"children":5074},{"style":44},[5075],{"type":14,"value":80},{"type":9,"tag":37,"props":5077,"children":5078},{"class":39,"line":698},[5079],{"type":9,"tag":37,"props":5080,"children":5081},{"style":44},[5082],{"type":14,"value":5083},"        {{ single.progress.value ?? 0 }}% · {{ STATUS[single.status.value].label }}\n",{"type":9,"tag":37,"props":5085,"children":5086},{"class":39,"line":706},[5087,5091,5095],{"type":9,"tag":37,"props":5088,"children":5089},{"style":44},[5090],{"type":14,"value":559},{"type":9,"tag":37,"props":5092,"children":5093},{"style":50},[5094],{"type":14,"value":741},{"type":9,"tag":37,"props":5096,"children":5097},{"style":44},[5098],{"type":14,"value":80},{"type":9,"tag":37,"props":5100,"children":5101},{"class":39,"line":715},[5102,5106,5110],{"type":9,"tag":37,"props":5103,"children":5104},{"style":44},[5105],{"type":14,"value":825},{"type":9,"tag":37,"props":5107,"children":5108},{"style":50},[5109],{"type":14,"value":356},{"type":9,"tag":37,"props":5111,"children":5112},{"style":44},[5113],{"type":14,"value":80},{"type":9,"tag":37,"props":5115,"children":5116},{"class":39,"line":731},[5117,5121],{"type":9,"tag":37,"props":5118,"children":5119},{"style":44},[5120],{"type":14,"value":383},{"type":9,"tag":37,"props":5122,"children":5123},{"style":50},[5124],{"type":14,"value":926},{"type":9,"tag":37,"props":5126,"children":5127},{"class":39,"line":794},[5128,5132,5136,5140,5145],{"type":9,"tag":37,"props":5129,"children":5130},{"style":87},[5131],{"type":14,"value":935},{"type":9,"tag":37,"props":5133,"children":5134},{"style":44},[5135],{"type":14,"value":69},{"type":9,"tag":37,"props":5137,"children":5138},{"style":72},[5139],{"type":14,"value":441},{"type":9,"tag":37,"props":5141,"children":5142},{"style":44},[5143],{"type":14,"value":5144},"single.error.value",{"type":9,"tag":37,"props":5146,"children":5147},{"style":72},[5148],{"type":14,"value":532},{"type":9,"tag":37,"props":5150,"children":5151},{"class":39,"line":803},[5152,5156,5160],{"type":9,"tag":37,"props":5153,"children":5154},{"style":56},[5155],{"type":14,"value":961},{"type":9,"tag":37,"props":5157,"children":5158},{"style":44},[5159],{"type":14,"value":69},{"type":9,"tag":37,"props":5161,"children":5162},{"style":72},[5163],{"type":14,"value":627},{"type":9,"tag":37,"props":5165,"children":5166},{"class":39,"line":819},[5167,5171,5175],{"type":9,"tag":37,"props":5168,"children":5169},{"style":56},[5170],{"type":14,"value":978},{"type":9,"tag":37,"props":5172,"children":5173},{"style":44},[5174],{"type":14,"value":69},{"type":9,"tag":37,"props":5176,"children":5177},{"style":72},[5178],{"type":14,"value":987},{"type":9,"tag":37,"props":5180,"children":5181},{"class":39,"line":836},[5182,5186,5190,5194,5198,5203],{"type":9,"tag":37,"props":5183,"children":5184},{"style":44},[5185],{"type":14,"value":996},{"type":9,"tag":37,"props":5187,"children":5188},{"style":56},[5189],{"type":14,"value":1001},{"type":9,"tag":37,"props":5191,"children":5192},{"style":44},[5193],{"type":14,"value":69},{"type":9,"tag":37,"props":5195,"children":5196},{"style":72},[5197],{"type":14,"value":441},{"type":9,"tag":37,"props":5199,"children":5200},{"style":44},[5201],{"type":14,"value":5202},"single.error.value.message",{"type":9,"tag":37,"props":5204,"children":5205},{"style":72},[5206],{"type":14,"value":532},{"type":9,"tag":37,"props":5208,"children":5209},{"class":39,"line":916},[5210],{"type":9,"tag":37,"props":5211,"children":5212},{"style":44},[5213],{"type":14,"value":1027},{"type":9,"tag":37,"props":5215,"children":5216},{"class":39,"line":929},[5217,5221,5225,5229,5233,5237,5242,5246],{"type":9,"tag":37,"props":5218,"children":5219},{"style":44},[5220],{"type":14,"value":383},{"type":9,"tag":37,"props":5222,"children":5223},{"style":50},[5224],{"type":14,"value":4278},{"type":9,"tag":37,"props":5226,"children":5227},{"style":87},[5228],{"type":14,"value":4283},{"type":9,"tag":37,"props":5230,"children":5231},{"style":44},[5232],{"type":14,"value":69},{"type":9,"tag":37,"props":5234,"children":5235},{"style":72},[5236],{"type":14,"value":441},{"type":9,"tag":37,"props":5238,"children":5239},{"style":44},[5240],{"type":14,"value":5241},"single.data.value",{"type":9,"tag":37,"props":5243,"children":5244},{"style":72},[5245],{"type":14,"value":441},{"type":9,"tag":37,"props":5247,"children":5248},{"style":44},[5249],{"type":14,"value":80},{"type":9,"tag":37,"props":5251,"children":5252},{"class":39,"line":955},[5253,5257,5261,5265,5269,5273,5278,5282],{"type":9,"tag":37,"props":5254,"children":5255},{"style":44},[5256],{"type":14,"value":413},{"type":9,"tag":37,"props":5258,"children":5259},{"style":50},[5260],{"type":14,"value":26},{"type":9,"tag":37,"props":5262,"children":5263},{"style":56},[5264],{"type":14,"value":361},{"type":9,"tag":37,"props":5266,"children":5267},{"style":44},[5268],{"type":14,"value":69},{"type":9,"tag":37,"props":5270,"children":5271},{"style":72},[5272],{"type":14,"value":4329},{"type":9,"tag":37,"props":5274,"children":5275},{"style":44},[5276],{"type":14,"value":5277},">{{ single.data.value }}\u003C\u002F",{"type":9,"tag":37,"props":5279,"children":5280},{"style":50},[5281],{"type":14,"value":26},{"type":9,"tag":37,"props":5283,"children":5284},{"style":44},[5285],{"type":14,"value":80},{"type":9,"tag":37,"props":5287,"children":5288},{"class":39,"line":972},[5289,5293,5297],{"type":9,"tag":37,"props":5290,"children":5291},{"style":44},[5292],{"type":14,"value":825},{"type":9,"tag":37,"props":5294,"children":5295},{"style":50},[5296],{"type":14,"value":4278},{"type":9,"tag":37,"props":5298,"children":5299},{"style":44},[5300],{"type":14,"value":80},{"type":9,"tag":37,"props":5302,"children":5303},{"class":39,"line":990},[5304,5308,5312],{"type":9,"tag":37,"props":5305,"children":5306},{"style":44},[5307],{"type":14,"value":1036},{"type":9,"tag":37,"props":5309,"children":5310},{"style":50},[5311],{"type":14,"value":356},{"type":9,"tag":37,"props":5313,"children":5314},{"style":44},[5315],{"type":14,"value":80},{"type":9,"tag":37,"props":5317,"children":5318},{"class":39,"line":1021},[5319,5323,5327],{"type":9,"tag":37,"props":5320,"children":5321},{"style":44},[5322],{"type":14,"value":309},{"type":9,"tag":37,"props":5324,"children":5325},{"style":50},[5326],{"type":14,"value":338},{"type":9,"tag":37,"props":5328,"children":5329},{"style":44},[5330],{"type":14,"value":80},{"type":9,"tag":1062,"props":5332,"children":5333},{},[5334],{"type":14,"value":1066},{"title":22,"searchDepth":83,"depth":83,"links":5336},[],{"code":5338,"filePath":5339,"pascalName":5340},"\u003Cscript setup lang=\"ts\">\nconst STATUS = {\n  idle: { color: 'neutral', label: '空闲' },\n  pending: { color: 'info', label: '上传中' },\n  success: { color: 'success', label: '完成' },\n  error: { color: 'error', label: '失败' },\n  aborted: { color: 'warning', label: '已取消' }\n} as const\n\nconst selected = ref\u003CFile[] | null>(null)\nconst timeout = useUploadWithProgress()\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUFileUpload v-model=\"selected\" multiple label=\"选择文件后模拟超时\" \u002F>\n    \u003Cdiv class=\"flex items-center gap-2\">\n      \u003CUButton\n        color=\"neutral\"\n        :loading=\"timeout.status.value === 'pending'\"\n        :disabled=\"!selected?.length\"\n        icon=\"i-lucide-timer\"\n        @click=\"timeout.upload('\u002Fupload?slow=2000', selected!, { timeout: 500 })\"\n      >\n        模拟超时\n      \u003C\u002FUButton>\n      \u003CUBadge :color=\"STATUS[timeout.status.value].color\" variant=\"subtle\">\n        {{ STATUS[timeout.status.value].label }}\n      \u003C\u002FUBadge>\n    \u003C\u002Fdiv>\n    \u003CUAlert\n      v-if=\"timeout.error.value\"\n      color=\"error\"\n      variant=\"subtle\"\n      :description=\"timeout.error.value.message\"\n    \u002F>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fcomposables\u002Fuse-upload-progress\u002FComposablesUseUploadProgressTimeoutExample.vue","ComposablesUseUploadProgressTimeoutExample",{"data":5342,"body":5343,"toc":6192},{"title":22,"description":22},{"type":6,"children":5344},[5345,6188],{"type":9,"tag":26,"props":5346,"children":5348},{"className":28,"code":5347,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nconst STATUS = {\n  idle: { color: 'neutral', label: '空闲' },\n  pending: { color: 'info', label: '上传中' },\n  success: { color: 'success', label: '完成' },\n  error: { color: 'error', label: '失败' },\n  aborted: { color: 'warning', label: '已取消' }\n} as const\n\nconst selected = ref\u003CFile[] | null>(null)\nconst timeout = useUploadWithProgress()\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUFileUpload v-model=\"selected\" multiple label=\"选择文件后模拟超时\" \u002F>\n    \u003Cdiv class=\"flex items-center gap-2\">\n      \u003CUButton\n        color=\"neutral\"\n        :loading=\"timeout.status.value === 'pending'\"\n        :disabled=\"!selected?.length\"\n        icon=\"i-lucide-timer\"\n        @click=\"timeout.upload('\u002Fupload?slow=2000', selected!, { timeout: 500 })\"\n      >\n        模拟超时\n      \u003C\u002FUButton>\n      \u003CUBadge :color=\"STATUS[timeout.status.value].color\" variant=\"subtle\">\n        {{ STATUS[timeout.status.value].label }}\n      \u003C\u002FUBadge>\n    \u003C\u002Fdiv>\n    \u003CUAlert\n      v-if=\"timeout.error.value\"\n      color=\"error\"\n      variant=\"subtle\"\n      :description=\"timeout.error.value.message\"\n    \u002F>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[5349],{"type":9,"tag":33,"props":5350,"children":5351},{"__ignoreMap":22},[5352,5383,5402,5425,5448,5471,5494,5517,5532,5539,5590,5614,5629,5636,5651,5678,5730,5757,5768,5784,5816,5851,5871,5934,5941,5949,5964,6020,6028,6043,6058,6069,6093,6108,6123,6151,6158,6173],{"type":9,"tag":37,"props":5353,"children":5354},{"class":39,"line":40},[5355,5359,5363,5367,5371,5375,5379],{"type":9,"tag":37,"props":5356,"children":5357},{"style":44},[5358],{"type":14,"value":47},{"type":9,"tag":37,"props":5360,"children":5361},{"style":50},[5362],{"type":14,"value":53},{"type":9,"tag":37,"props":5364,"children":5365},{"style":56},[5366],{"type":14,"value":59},{"type":9,"tag":37,"props":5368,"children":5369},{"style":56},[5370],{"type":14,"value":64},{"type":9,"tag":37,"props":5372,"children":5373},{"style":44},[5374],{"type":14,"value":69},{"type":9,"tag":37,"props":5376,"children":5377},{"style":72},[5378],{"type":14,"value":75},{"type":9,"tag":37,"props":5380,"children":5381},{"style":44},[5382],{"type":14,"value":80},{"type":9,"tag":37,"props":5384,"children":5385},{"class":39,"line":83},[5386,5390,5394,5398],{"type":9,"tag":37,"props":5387,"children":5388},{"style":87},[5389],{"type":14,"value":90},{"type":9,"tag":37,"props":5391,"children":5392},{"style":93},[5393],{"type":14,"value":96},{"type":9,"tag":37,"props":5395,"children":5396},{"style":87},[5397],{"type":14,"value":101},{"type":9,"tag":37,"props":5399,"children":5400},{"style":44},[5401],{"type":14,"value":106},{"type":9,"tag":37,"props":5403,"children":5404},{"class":39,"line":109},[5405,5409,5413,5417,5421],{"type":9,"tag":37,"props":5406,"children":5407},{"style":44},[5408],{"type":14,"value":115},{"type":9,"tag":37,"props":5410,"children":5411},{"style":72},[5412],{"type":14,"value":120},{"type":9,"tag":37,"props":5414,"children":5415},{"style":44},[5416],{"type":14,"value":125},{"type":9,"tag":37,"props":5418,"children":5419},{"style":72},[5420],{"type":14,"value":130},{"type":9,"tag":37,"props":5422,"children":5423},{"style":44},[5424],{"type":14,"value":135},{"type":9,"tag":37,"props":5426,"children":5427},{"class":39,"line":138},[5428,5432,5436,5440,5444],{"type":9,"tag":37,"props":5429,"children":5430},{"style":44},[5431],{"type":14,"value":144},{"type":9,"tag":37,"props":5433,"children":5434},{"style":72},[5435],{"type":14,"value":149},{"type":9,"tag":37,"props":5437,"children":5438},{"style":44},[5439],{"type":14,"value":125},{"type":9,"tag":37,"props":5441,"children":5442},{"style":72},[5443],{"type":14,"value":3281},{"type":9,"tag":37,"props":5445,"children":5446},{"style":44},[5447],{"type":14,"value":135},{"type":9,"tag":37,"props":5449,"children":5450},{"class":39,"line":165},[5451,5455,5459,5463,5467],{"type":9,"tag":37,"props":5452,"children":5453},{"style":44},[5454],{"type":14,"value":171},{"type":9,"tag":37,"props":5456,"children":5457},{"style":72},[5458],{"type":14,"value":176},{"type":9,"tag":37,"props":5460,"children":5461},{"style":44},[5462],{"type":14,"value":125},{"type":9,"tag":37,"props":5464,"children":5465},{"style":72},[5466],{"type":14,"value":185},{"type":9,"tag":37,"props":5468,"children":5469},{"style":44},[5470],{"type":14,"value":135},{"type":9,"tag":37,"props":5472,"children":5473},{"class":39,"line":192},[5474,5478,5482,5486,5490],{"type":9,"tag":37,"props":5475,"children":5476},{"style":44},[5477],{"type":14,"value":198},{"type":9,"tag":37,"props":5479,"children":5480},{"style":72},[5481],{"type":14,"value":203},{"type":9,"tag":37,"props":5483,"children":5484},{"style":44},[5485],{"type":14,"value":125},{"type":9,"tag":37,"props":5487,"children":5488},{"style":72},[5489],{"type":14,"value":212},{"type":9,"tag":37,"props":5491,"children":5492},{"style":44},[5493],{"type":14,"value":135},{"type":9,"tag":37,"props":5495,"children":5496},{"class":39,"line":219},[5497,5501,5505,5509,5513],{"type":9,"tag":37,"props":5498,"children":5499},{"style":44},[5500],{"type":14,"value":225},{"type":9,"tag":37,"props":5502,"children":5503},{"style":72},[5504],{"type":14,"value":230},{"type":9,"tag":37,"props":5506,"children":5507},{"style":44},[5508],{"type":14,"value":125},{"type":9,"tag":37,"props":5510,"children":5511},{"style":72},[5512],{"type":14,"value":239},{"type":9,"tag":37,"props":5514,"children":5515},{"style":44},[5516],{"type":14,"value":244},{"type":9,"tag":37,"props":5518,"children":5519},{"class":39,"line":247},[5520,5524,5528],{"type":9,"tag":37,"props":5521,"children":5522},{"style":44},[5523],{"type":14,"value":253},{"type":9,"tag":37,"props":5525,"children":5526},{"style":87},[5527],{"type":14,"value":258},{"type":9,"tag":37,"props":5529,"children":5530},{"style":87},[5531],{"type":14,"value":263},{"type":9,"tag":37,"props":5533,"children":5534},{"class":39,"line":266},[5535],{"type":9,"tag":37,"props":5536,"children":5537},{"emptyLinePlaceholder":270},[5538],{"type":14,"value":273},{"type":9,"tag":37,"props":5540,"children":5541},{"class":39,"line":276},[5542,5546,5550,5554,5558,5562,5566,5570,5574,5578,5582,5586],{"type":9,"tag":37,"props":5543,"children":5544},{"style":87},[5545],{"type":14,"value":90},{"type":9,"tag":37,"props":5547,"children":5548},{"style":93},[5549],{"type":14,"value":3388},{"type":9,"tag":37,"props":5551,"children":5552},{"style":87},[5553],{"type":14,"value":101},{"type":9,"tag":37,"props":5555,"children":5556},{"style":56},[5557],{"type":14,"value":3397},{"type":9,"tag":37,"props":5559,"children":5560},{"style":44},[5561],{"type":14,"value":47},{"type":9,"tag":37,"props":5563,"children":5564},{"style":56},[5565],{"type":14,"value":3406},{"type":9,"tag":37,"props":5567,"children":5568},{"style":44},[5569],{"type":14,"value":3411},{"type":9,"tag":37,"props":5571,"children":5572},{"style":87},[5573],{"type":14,"value":3416},{"type":9,"tag":37,"props":5575,"children":5576},{"style":93},[5577],{"type":14,"value":3421},{"type":9,"tag":37,"props":5579,"children":5580},{"style":44},[5581],{"type":14,"value":3426},{"type":9,"tag":37,"props":5583,"children":5584},{"style":93},[5585],{"type":14,"value":3431},{"type":9,"tag":37,"props":5587,"children":5588},{"style":44},[5589],{"type":14,"value":3436},{"type":9,"tag":37,"props":5591,"children":5592},{"class":39,"line":303},[5593,5597,5602,5606,5610],{"type":9,"tag":37,"props":5594,"children":5595},{"style":87},[5596],{"type":14,"value":90},{"type":9,"tag":37,"props":5598,"children":5599},{"style":93},[5600],{"type":14,"value":5601}," timeout",{"type":9,"tag":37,"props":5603,"children":5604},{"style":87},[5605],{"type":14,"value":101},{"type":9,"tag":37,"props":5607,"children":5608},{"style":56},[5609],{"type":14,"value":3456},{"type":9,"tag":37,"props":5611,"children":5612},{"style":44},[5613],{"type":14,"value":300},{"type":9,"tag":37,"props":5615,"children":5616},{"class":39,"line":320},[5617,5621,5625],{"type":9,"tag":37,"props":5618,"children":5619},{"style":44},[5620],{"type":14,"value":309},{"type":9,"tag":37,"props":5622,"children":5623},{"style":50},[5624],{"type":14,"value":53},{"type":9,"tag":37,"props":5626,"children":5627},{"style":44},[5628],{"type":14,"value":80},{"type":9,"tag":37,"props":5630,"children":5631},{"class":39,"line":328},[5632],{"type":9,"tag":37,"props":5633,"children":5634},{"emptyLinePlaceholder":270},[5635],{"type":14,"value":273},{"type":9,"tag":37,"props":5637,"children":5638},{"class":39,"line":345},[5639,5643,5647],{"type":9,"tag":37,"props":5640,"children":5641},{"style":44},[5642],{"type":14,"value":47},{"type":9,"tag":37,"props":5644,"children":5645},{"style":50},[5646],{"type":14,"value":338},{"type":9,"tag":37,"props":5648,"children":5649},{"style":44},[5650],{"type":14,"value":80},{"type":9,"tag":37,"props":5652,"children":5653},{"class":39,"line":377},[5654,5658,5662,5666,5670,5674],{"type":9,"tag":37,"props":5655,"children":5656},{"style":44},[5657],{"type":14,"value":351},{"type":9,"tag":37,"props":5659,"children":5660},{"style":50},[5661],{"type":14,"value":356},{"type":9,"tag":37,"props":5663,"children":5664},{"style":56},[5665],{"type":14,"value":361},{"type":9,"tag":37,"props":5667,"children":5668},{"style":44},[5669],{"type":14,"value":69},{"type":9,"tag":37,"props":5671,"children":5672},{"style":72},[5673],{"type":14,"value":370},{"type":9,"tag":37,"props":5675,"children":5676},{"style":44},[5677],{"type":14,"value":80},{"type":9,"tag":37,"props":5679,"children":5680},{"class":39,"line":407},[5681,5685,5689,5693,5697,5701,5705,5709,5713,5717,5721,5726],{"type":9,"tag":37,"props":5682,"children":5683},{"style":44},[5684],{"type":14,"value":383},{"type":9,"tag":37,"props":5686,"children":5687},{"style":50},[5688],{"type":14,"value":3594},{"type":9,"tag":37,"props":5690,"children":5691},{"style":56},[5692],{"type":14,"value":3599},{"type":9,"tag":37,"props":5694,"children":5695},{"style":44},[5696],{"type":14,"value":69},{"type":9,"tag":37,"props":5698,"children":5699},{"style":72},[5700],{"type":14,"value":441},{"type":9,"tag":37,"props":5702,"children":5703},{"style":44},[5704],{"type":14,"value":3612},{"type":9,"tag":37,"props":5706,"children":5707},{"style":72},[5708],{"type":14,"value":441},{"type":9,"tag":37,"props":5710,"children":5711},{"style":56},[5712],{"type":14,"value":3621},{"type":9,"tag":37,"props":5714,"children":5715},{"style":56},[5716],{"type":14,"value":3626},{"type":9,"tag":37,"props":5718,"children":5719},{"style":44},[5720],{"type":14,"value":69},{"type":9,"tag":37,"props":5722,"children":5723},{"style":72},[5724],{"type":14,"value":5725},"\"选择文件后模拟超时\"",{"type":9,"tag":37,"props":5727,"children":5728},{"style":44},[5729],{"type":14,"value":913},{"type":9,"tag":37,"props":5731,"children":5732},{"class":39,"line":421},[5733,5737,5741,5745,5749,5753],{"type":9,"tag":37,"props":5734,"children":5735},{"style":44},[5736],{"type":14,"value":383},{"type":9,"tag":37,"props":5738,"children":5739},{"style":50},[5740],{"type":14,"value":356},{"type":9,"tag":37,"props":5742,"children":5743},{"style":56},[5744],{"type":14,"value":361},{"type":9,"tag":37,"props":5746,"children":5747},{"style":44},[5748],{"type":14,"value":69},{"type":9,"tag":37,"props":5750,"children":5751},{"style":72},[5752],{"type":14,"value":400},{"type":9,"tag":37,"props":5754,"children":5755},{"style":44},[5756],{"type":14,"value":80},{"type":9,"tag":37,"props":5758,"children":5759},{"class":39,"line":459},[5760,5764],{"type":9,"tag":37,"props":5761,"children":5762},{"style":44},[5763],{"type":14,"value":413},{"type":9,"tag":37,"props":5765,"children":5766},{"style":50},[5767],{"type":14,"value":418},{"type":9,"tag":37,"props":5769,"children":5770},{"class":39,"line":483},[5771,5775,5779],{"type":9,"tag":37,"props":5772,"children":5773},{"style":56},[5774],{"type":14,"value":618},{"type":9,"tag":37,"props":5776,"children":5777},{"style":44},[5778],{"type":14,"value":69},{"type":9,"tag":37,"props":5780,"children":5781},{"style":72},[5782],{"type":14,"value":5783},"\"neutral\"\n",{"type":9,"tag":37,"props":5785,"children":5786},{"class":39,"line":535},[5787,5791,5795,5799,5803,5808,5812],{"type":9,"tag":37,"props":5788,"children":5789},{"style":44},[5790],{"type":14,"value":427},{"type":9,"tag":37,"props":5792,"children":5793},{"style":56},[5794],{"type":14,"value":432},{"type":9,"tag":37,"props":5796,"children":5797},{"style":44},[5798],{"type":14,"value":69},{"type":9,"tag":37,"props":5800,"children":5801},{"style":72},[5802],{"type":14,"value":441},{"type":9,"tag":37,"props":5804,"children":5805},{"style":44},[5806],{"type":14,"value":5807},"timeout.status.value ",{"type":9,"tag":37,"props":5809,"children":5810},{"style":87},[5811],{"type":14,"value":451},{"type":9,"tag":37,"props":5813,"children":5814},{"style":72},[5815],{"type":14,"value":456},{"type":9,"tag":37,"props":5817,"children":5818},{"class":39,"line":544},[5819,5823,5827,5831,5835,5839,5843,5847],{"type":9,"tag":37,"props":5820,"children":5821},{"style":44},[5822],{"type":14,"value":427},{"type":9,"tag":37,"props":5824,"children":5825},{"style":56},[5826],{"type":14,"value":3720},{"type":9,"tag":37,"props":5828,"children":5829},{"style":44},[5830],{"type":14,"value":69},{"type":9,"tag":37,"props":5832,"children":5833},{"style":72},[5834],{"type":14,"value":441},{"type":9,"tag":37,"props":5836,"children":5837},{"style":87},[5838],{"type":14,"value":3733},{"type":9,"tag":37,"props":5840,"children":5841},{"style":44},[5842],{"type":14,"value":3738},{"type":9,"tag":37,"props":5844,"children":5845},{"style":93},[5846],{"type":14,"value":3743},{"type":9,"tag":37,"props":5848,"children":5849},{"style":72},[5850],{"type":14,"value":532},{"type":9,"tag":37,"props":5852,"children":5853},{"class":39,"line":553},[5854,5858,5862],{"type":9,"tag":37,"props":5855,"children":5856},{"style":56},[5857],{"type":14,"value":465},{"type":9,"tag":37,"props":5859,"children":5860},{"style":44},[5861],{"type":14,"value":69},{"type":9,"tag":37,"props":5863,"children":5864},{"style":72},[5865,5869],{"type":9,"tag":474,"props":5866,"children":5868},{"class":476,"style":5867},"--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Ftimer.svg?color=%23000)",[],{"type":14,"value":5870},"\"i-lucide-timer\"\n",{"type":9,"tag":37,"props":5872,"children":5873},{"class":39,"line":571},[5874,5878,5882,5886,5890,5895,5899,5903,5908,5912,5916,5921,5926,5930],{"type":9,"tag":37,"props":5875,"children":5876},{"style":44},[5877],{"type":14,"value":489},{"type":9,"tag":37,"props":5879,"children":5880},{"style":56},[5881],{"type":14,"value":494},{"type":9,"tag":37,"props":5883,"children":5884},{"style":44},[5885],{"type":14,"value":69},{"type":9,"tag":37,"props":5887,"children":5888},{"style":72},[5889],{"type":14,"value":441},{"type":9,"tag":37,"props":5891,"children":5892},{"style":44},[5893],{"type":14,"value":5894},"timeout.",{"type":9,"tag":37,"props":5896,"children":5897},{"style":56},[5898],{"type":14,"value":3795},{"type":9,"tag":37,"props":5900,"children":5901},{"style":44},[5902],{"type":14,"value":517},{"type":9,"tag":37,"props":5904,"children":5905},{"style":72},[5906],{"type":14,"value":5907},"'\u002Fupload?slow=2000'",{"type":9,"tag":37,"props":5909,"children":5910},{"style":44},[5911],{"type":14,"value":3809},{"type":9,"tag":37,"props":5913,"children":5914},{"style":87},[5915],{"type":14,"value":3733},{"type":9,"tag":37,"props":5917,"children":5918},{"style":44},[5919],{"type":14,"value":5920},", { timeout: ",{"type":9,"tag":37,"props":5922,"children":5923},{"style":93},[5924],{"type":14,"value":5925},"500",{"type":9,"tag":37,"props":5927,"children":5928},{"style":44},[5929],{"type":14,"value":2161},{"type":9,"tag":37,"props":5931,"children":5932},{"style":72},[5933],{"type":14,"value":532},{"type":9,"tag":37,"props":5935,"children":5936},{"class":39,"line":583},[5937],{"type":9,"tag":37,"props":5938,"children":5939},{"style":44},[5940],{"type":14,"value":541},{"type":9,"tag":37,"props":5942,"children":5943},{"class":39,"line":612},[5944],{"type":9,"tag":37,"props":5945,"children":5946},{"style":44},[5947],{"type":14,"value":5948},"        模拟超时\n",{"type":9,"tag":37,"props":5950,"children":5951},{"class":39,"line":630},[5952,5956,5960],{"type":9,"tag":37,"props":5953,"children":5954},{"style":44},[5955],{"type":14,"value":559},{"type":9,"tag":37,"props":5957,"children":5958},{"style":50},[5959],{"type":14,"value":564},{"type":9,"tag":37,"props":5961,"children":5962},{"style":44},[5963],{"type":14,"value":80},{"type":9,"tag":37,"props":5965,"children":5966},{"class":39,"line":648},[5967,5971,5975,5979,5983,5987,5991,5995,6000,6004,6008,6012,6016],{"type":9,"tag":37,"props":5968,"children":5969},{"style":44},[5970],{"type":14,"value":413},{"type":9,"tag":37,"props":5972,"children":5973},{"style":50},[5974],{"type":14,"value":741},{"type":9,"tag":37,"props":5976,"children":5977},{"style":44},[5978],{"type":14,"value":746},{"type":9,"tag":37,"props":5980,"children":5981},{"style":56},[5982],{"type":14,"value":751},{"type":9,"tag":37,"props":5984,"children":5985},{"style":44},[5986],{"type":14,"value":69},{"type":9,"tag":37,"props":5988,"children":5989},{"style":72},[5990],{"type":14,"value":441},{"type":9,"tag":37,"props":5992,"children":5993},{"style":93},[5994],{"type":14,"value":764},{"type":9,"tag":37,"props":5996,"children":5997},{"style":44},[5998],{"type":14,"value":5999},"[timeout.status.value].color",{"type":9,"tag":37,"props":6001,"children":6002},{"style":72},[6003],{"type":14,"value":441},{"type":9,"tag":37,"props":6005,"children":6006},{"style":56},[6007],{"type":14,"value":778},{"type":9,"tag":37,"props":6009,"children":6010},{"style":44},[6011],{"type":14,"value":69},{"type":9,"tag":37,"props":6013,"children":6014},{"style":72},[6015],{"type":14,"value":787},{"type":9,"tag":37,"props":6017,"children":6018},{"style":44},[6019],{"type":14,"value":80},{"type":9,"tag":37,"props":6021,"children":6022},{"class":39,"line":669},[6023],{"type":9,"tag":37,"props":6024,"children":6025},{"style":44},[6026],{"type":14,"value":6027},"        {{ STATUS[timeout.status.value].label }}\n",{"type":9,"tag":37,"props":6029,"children":6030},{"class":39,"line":698},[6031,6035,6039],{"type":9,"tag":37,"props":6032,"children":6033},{"style":44},[6034],{"type":14,"value":559},{"type":9,"tag":37,"props":6036,"children":6037},{"style":50},[6038],{"type":14,"value":741},{"type":9,"tag":37,"props":6040,"children":6041},{"style":44},[6042],{"type":14,"value":80},{"type":9,"tag":37,"props":6044,"children":6045},{"class":39,"line":706},[6046,6050,6054],{"type":9,"tag":37,"props":6047,"children":6048},{"style":44},[6049],{"type":14,"value":825},{"type":9,"tag":37,"props":6051,"children":6052},{"style":50},[6053],{"type":14,"value":356},{"type":9,"tag":37,"props":6055,"children":6056},{"style":44},[6057],{"type":14,"value":80},{"type":9,"tag":37,"props":6059,"children":6060},{"class":39,"line":715},[6061,6065],{"type":9,"tag":37,"props":6062,"children":6063},{"style":44},[6064],{"type":14,"value":383},{"type":9,"tag":37,"props":6066,"children":6067},{"style":50},[6068],{"type":14,"value":926},{"type":9,"tag":37,"props":6070,"children":6071},{"class":39,"line":731},[6072,6076,6080,6084,6089],{"type":9,"tag":37,"props":6073,"children":6074},{"style":87},[6075],{"type":14,"value":935},{"type":9,"tag":37,"props":6077,"children":6078},{"style":44},[6079],{"type":14,"value":69},{"type":9,"tag":37,"props":6081,"children":6082},{"style":72},[6083],{"type":14,"value":441},{"type":9,"tag":37,"props":6085,"children":6086},{"style":44},[6087],{"type":14,"value":6088},"timeout.error.value",{"type":9,"tag":37,"props":6090,"children":6091},{"style":72},[6092],{"type":14,"value":532},{"type":9,"tag":37,"props":6094,"children":6095},{"class":39,"line":794},[6096,6100,6104],{"type":9,"tag":37,"props":6097,"children":6098},{"style":56},[6099],{"type":14,"value":961},{"type":9,"tag":37,"props":6101,"children":6102},{"style":44},[6103],{"type":14,"value":69},{"type":9,"tag":37,"props":6105,"children":6106},{"style":72},[6107],{"type":14,"value":627},{"type":9,"tag":37,"props":6109,"children":6110},{"class":39,"line":803},[6111,6115,6119],{"type":9,"tag":37,"props":6112,"children":6113},{"style":56},[6114],{"type":14,"value":978},{"type":9,"tag":37,"props":6116,"children":6117},{"style":44},[6118],{"type":14,"value":69},{"type":9,"tag":37,"props":6120,"children":6121},{"style":72},[6122],{"type":14,"value":987},{"type":9,"tag":37,"props":6124,"children":6125},{"class":39,"line":819},[6126,6130,6134,6138,6142,6147],{"type":9,"tag":37,"props":6127,"children":6128},{"style":44},[6129],{"type":14,"value":996},{"type":9,"tag":37,"props":6131,"children":6132},{"style":56},[6133],{"type":14,"value":1001},{"type":9,"tag":37,"props":6135,"children":6136},{"style":44},[6137],{"type":14,"value":69},{"type":9,"tag":37,"props":6139,"children":6140},{"style":72},[6141],{"type":14,"value":441},{"type":9,"tag":37,"props":6143,"children":6144},{"style":44},[6145],{"type":14,"value":6146},"timeout.error.value.message",{"type":9,"tag":37,"props":6148,"children":6149},{"style":72},[6150],{"type":14,"value":532},{"type":9,"tag":37,"props":6152,"children":6153},{"class":39,"line":836},[6154],{"type":9,"tag":37,"props":6155,"children":6156},{"style":44},[6157],{"type":14,"value":1027},{"type":9,"tag":37,"props":6159,"children":6160},{"class":39,"line":916},[6161,6165,6169],{"type":9,"tag":37,"props":6162,"children":6163},{"style":44},[6164],{"type":14,"value":1036},{"type":9,"tag":37,"props":6166,"children":6167},{"style":50},[6168],{"type":14,"value":356},{"type":9,"tag":37,"props":6170,"children":6171},{"style":44},[6172],{"type":14,"value":80},{"type":9,"tag":37,"props":6174,"children":6175},{"class":39,"line":929},[6176,6180,6184],{"type":9,"tag":37,"props":6177,"children":6178},{"style":44},[6179],{"type":14,"value":309},{"type":9,"tag":37,"props":6181,"children":6182},{"style":50},[6183],{"type":14,"value":338},{"type":9,"tag":37,"props":6185,"children":6186},{"style":44},[6187],{"type":14,"value":80},{"type":9,"tag":1062,"props":6189,"children":6190},{},[6191],{"type":14,"value":1066},{"title":22,"searchDepth":83,"depth":83,"links":6193},[],{"id":6195,"title":6196,"body":6197,"category":8142,"description":15,"difficulty":8142,"extension":8143,"index":8144,"keywords":8142,"links":8142,"meta":8145,"navigation":8142,"path":8146,"requires":8142,"seo":8147,"sitemap":8148,"stem":8149,"__hash__":8150},"docs_en\u002Fen\u002Fdocs\u002F4.api\u002F5.upload-download.md","Upload and Download",{"type":6198,"value":6199,"toc":8117},"minimark",[6200,6205,6210,6235,6693,6704,6708,6725,6729,6733,6749,6838,6841,6845,6860,6863,6867,6891,6895,6976,6979,7023,7027,7038,7069,7073,7078,7123,7128,7274,7278,7282,7286,7289,7305,7328,7650,7657,7661,7670,7673,7677,7680,7703,7727,7731,7749,7752,7756,7761,7764,7768,7784,7787,7791,7867,7869,7899,7902,7910,7947,7950,7954,8000,8003,8109,8112,8114],[6201,6202,6204],"h2",{"id":6203},"useuploadwithprogress","useUploadWithProgress",[6206,6207,6209],"h3",{"id":6208},"usage","Usage",[10,6211,6212,6214,6215,6218,6219,6222,6223,6226,6227,6230,6231,6234],{},[33,6213,6204],{}," plugs an XHR adapter in as the underlying fetch of the same ",[33,6216,6217],{},"$api"," pipeline (the fetch spec still cannot report upload progress in mainstream browsers), so endpoint headers, auth, business validation, Toast, error normalization and ",[33,6220,6221],{},"movk:api:*"," hooks match ",[33,6224,6225],{},"useApiFetch"," exactly. The returned ",[33,6228,6229],{},"data"," is unwrapped per the endpoint policy and every failure is an ",[33,6232,6233],{},"ApiError",".",[26,6236,6238],{"className":28,"code":6237,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nconst selected = ref\u003CFile[] | null>(null)\nconst { progress, status, data, error, upload, abort } = useUploadWithProgress\u003C{\n  files: Array\u003C{ name: string, size: number }>\n}>()\n\nasync function handleUpload() {\n  const { data, error: err, aborted } = await upload('\u002Fapi\u002Fupload', selected.value!, {\n    fieldName: 'files',\n    onSuccess: d => console.log('Upload succeeded:', d.files)\n  })\n\n  if (aborted) return\n  if (err) console.error(err)\n  else console.log(data?.files)\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CUFileUpload v-model=\"selected\" multiple \u002F>\n  \u003CUButton :disabled=\"!selected?.length\" @click=\"handleUpload\">Upload\u003C\u002FUButton>\n  \u003CUProgress v-if=\"status === 'pending'\" :model-value=\"progress ?? undefined\" :max=\"100\" \u002F>\n  \u003CUButton v-if=\"status === 'pending'\" @click=\"abort\">Cancel\u003C\u002FUButton>\n\u003C\u002Ftemplate>\n",[33,6239,6240,6260,6288,6331,6360,6365,6369,6383,6429,6438,6465,6470,6474,6485,6497,6509,6514,6522,6526,6534,6554,6597,6648,6685],{"__ignoreMap":22},[37,6241,6242,6245,6248,6251,6253,6255,6258],{"class":39,"line":40},[37,6243,47],{"class":6244},"sxrX7",[37,6246,53],{"class":6247},"sovSZ",[37,6249,59],{"class":6250},"snPdu",[37,6252,64],{"class":6250},[37,6254,69],{"class":6244},[37,6256,75],{"class":6257},"sIIMD",[37,6259,80],{"class":6244},[37,6261,6262,6265,6268,6270,6272,6274,6276,6278,6280,6282,6284,6286],{"class":39,"line":83},[37,6263,90],{"class":6264},"s8jYJ",[37,6266,3388],{"class":6267},"sBjJW",[37,6269,101],{"class":6264},[37,6271,3397],{"class":6250},[37,6273,47],{"class":6244},[37,6275,3406],{"class":6250},[37,6277,3411],{"class":6244},[37,6279,3416],{"class":6264},[37,6281,3421],{"class":6267},[37,6283,3426],{"class":6244},[37,6285,3431],{"class":6267},[37,6287,3436],{"class":6244},[37,6289,6290,6292,6295,6298,6300,6303,6305,6307,6309,6312,6314,6316,6318,6321,6324,6326,6328],{"class":39,"line":109},[37,6291,90],{"class":6264},[37,6293,6294],{"class":6244}," { ",[37,6296,6297],{"class":6267},"progress",[37,6299,2882],{"class":6244},[37,6301,6302],{"class":6267},"status",[37,6304,2882],{"class":6244},[37,6306,6229],{"class":6267},[37,6308,2882],{"class":6244},[37,6310,6311],{"class":6267},"error",[37,6313,2882],{"class":6244},[37,6315,3795],{"class":6267},[37,6317,2882],{"class":6244},[37,6319,6320],{"class":6267},"abort",[37,6322,6323],{"class":6244}," } ",[37,6325,69],{"class":6264},[37,6327,3456],{"class":6250},[37,6329,6330],{"class":6244},"\u003C{\n",[37,6332,6333,6337,6339,6341,6343,6345,6347,6349,6351,6353,6355,6357],{"class":39,"line":138},[37,6334,6336],{"class":6335},"sP4rz","  files",[37,6338,3472],{"class":6264},[37,6340,3477],{"class":6250},[37,6342,3461],{"class":6244},[37,6344,3486],{"class":6335},[37,6346,3472],{"class":6264},[37,6348,3495],{"class":6267},[37,6350,2882],{"class":6244},[37,6352,3504],{"class":6335},[37,6354,3472],{"class":6264},[37,6356,3513],{"class":6267},[37,6358,6359],{"class":6244}," }>\n",[37,6361,6362],{"class":39,"line":165},[37,6363,6364],{"class":6244},"}>()\n",[37,6366,6367],{"class":39,"line":192},[37,6368,273],{"emptyLinePlaceholder":270},[37,6370,6371,6374,6377,6380],{"class":39,"line":219},[37,6372,6373],{"class":6264},"async",[37,6375,6376],{"class":6264}," function",[37,6378,6379],{"class":6250}," handleUpload",[37,6381,6382],{"class":6244},"() {\n",[37,6384,6385,6388,6390,6392,6394,6396,6399,6402,6404,6407,6409,6411,6414,6417,6419,6422,6425,6427],{"class":39,"line":247},[37,6386,6387],{"class":6264},"  const",[37,6389,6294],{"class":6244},[37,6391,6229],{"class":6267},[37,6393,2882],{"class":6244},[37,6395,6311],{"class":6335},[37,6397,6398],{"class":6244},": ",[37,6400,6401],{"class":6267},"err",[37,6403,2882],{"class":6244},[37,6405,6406],{"class":6267},"aborted",[37,6408,6323],{"class":6244},[37,6410,69],{"class":6264},[37,6412,6413],{"class":6264}," await",[37,6415,6416],{"class":6250}," upload",[37,6418,517],{"class":6244},[37,6420,6421],{"class":6257},"'\u002Fapi\u002Fupload'",[37,6423,6424],{"class":6244},", selected.value",[37,6426,3733],{"class":6264},[37,6428,2846],{"class":6244},[37,6430,6431,6434,6436],{"class":39,"line":266},[37,6432,6433],{"class":6244},"    fieldName: ",[37,6435,3823],{"class":6257},[37,6437,2864],{"class":6244},[37,6439,6440,6443,6445,6448,6451,6454,6457,6459,6462],{"class":39,"line":276},[37,6441,6442],{"class":6250},"    onSuccess",[37,6444,6398],{"class":6244},[37,6446,6447],{"class":6335},"d",[37,6449,6450],{"class":6264}," =>",[37,6452,6453],{"class":6244}," console.",[37,6455,6456],{"class":6250},"log",[37,6458,517],{"class":6244},[37,6460,6461],{"class":6257},"'Upload succeeded:'",[37,6463,6464],{"class":6244},", d.files)\n",[37,6466,6467],{"class":39,"line":303},[37,6468,6469],{"class":6244},"  })\n",[37,6471,6472],{"class":39,"line":320},[37,6473,273],{"emptyLinePlaceholder":270},[37,6475,6476,6479,6482],{"class":39,"line":328},[37,6477,6478],{"class":6264},"  if",[37,6480,6481],{"class":6244}," (aborted) ",[37,6483,6484],{"class":6264},"return\n",[37,6486,6487,6489,6492,6494],{"class":39,"line":345},[37,6488,6478],{"class":6264},[37,6490,6491],{"class":6244}," (err) console.",[37,6493,6311],{"class":6250},[37,6495,6496],{"class":6244},"(err)\n",[37,6498,6499,6502,6504,6506],{"class":39,"line":377},[37,6500,6501],{"class":6264},"  else",[37,6503,6453],{"class":6244},[37,6505,6456],{"class":6250},[37,6507,6508],{"class":6244},"(data?.files)\n",[37,6510,6511],{"class":39,"line":407},[37,6512,6513],{"class":6244},"}\n",[37,6515,6516,6518,6520],{"class":39,"line":421},[37,6517,309],{"class":6244},[37,6519,53],{"class":6247},[37,6521,80],{"class":6244},[37,6523,6524],{"class":39,"line":459},[37,6525,273],{"emptyLinePlaceholder":270},[37,6527,6528,6530,6532],{"class":39,"line":483},[37,6529,47],{"class":6244},[37,6531,338],{"class":6247},[37,6533,80],{"class":6244},[37,6535,6536,6538,6540,6542,6544,6546,6548,6550,6552],{"class":39,"line":535},[37,6537,351],{"class":6244},[37,6539,3594],{"class":6247},[37,6541,3599],{"class":6250},[37,6543,69],{"class":6244},[37,6545,441],{"class":6257},[37,6547,3612],{"class":6244},[37,6549,441],{"class":6257},[37,6551,3621],{"class":6250},[37,6553,913],{"class":6244},[37,6555,6556,6558,6560,6562,6564,6566,6568,6570,6572,6574,6576,6579,6581,6583,6585,6588,6590,6593,6595],{"class":39,"line":544},[37,6557,351],{"class":6244},[37,6559,564],{"class":6247},[37,6561,746],{"class":6244},[37,6563,3720],{"class":6250},[37,6565,69],{"class":6244},[37,6567,441],{"class":6257},[37,6569,3733],{"class":6264},[37,6571,3738],{"class":6244},[37,6573,3743],{"class":6267},[37,6575,441],{"class":6257},[37,6577,6578],{"class":6244}," @",[37,6580,494],{"class":6250},[37,6582,69],{"class":6244},[37,6584,441],{"class":6257},[37,6586,6587],{"class":6244},"handleUpload",[37,6589,441],{"class":6257},[37,6591,6592],{"class":6244},">Upload\u003C\u002F",[37,6594,564],{"class":6247},[37,6596,80],{"class":6244},[37,6598,6599,6601,6603,6605,6607,6609,6612,6614,6617,6619,6621,6623,6625,6628,6630,6632,6634,6636,6638,6640,6642,6644,6646],{"class":39,"line":553},[37,6600,351],{"class":6244},[37,6602,846],{"class":6247},[37,6604,4283],{"class":6264},[37,6606,69],{"class":6244},[37,6608,441],{"class":6257},[37,6610,6611],{"class":6244},"status ",[37,6613,451],{"class":6264},[37,6615,6616],{"class":6257}," 'pending'\"",[37,6618,746],{"class":6244},[37,6620,855],{"class":6250},[37,6622,69],{"class":6244},[37,6624,441],{"class":6257},[37,6626,6627],{"class":6244},"progress ",[37,6629,873],{"class":6264},[37,6631,878],{"class":6267},[37,6633,441],{"class":6257},[37,6635,746],{"class":6244},[37,6637,891],{"class":6250},[37,6639,69],{"class":6244},[37,6641,441],{"class":6257},[37,6643,904],{"class":6267},[37,6645,441],{"class":6257},[37,6647,913],{"class":6244},[37,6649,6650,6652,6654,6656,6658,6660,6662,6664,6666,6668,6670,6672,6674,6676,6678,6681,6683],{"class":39,"line":571},[37,6651,351],{"class":6244},[37,6653,564],{"class":6247},[37,6655,4283],{"class":6264},[37,6657,69],{"class":6244},[37,6659,441],{"class":6257},[37,6661,6611],{"class":6244},[37,6663,451],{"class":6264},[37,6665,6616],{"class":6257},[37,6667,6578],{"class":6244},[37,6669,494],{"class":6250},[37,6671,69],{"class":6244},[37,6673,441],{"class":6257},[37,6675,6320],{"class":6244},[37,6677,441],{"class":6257},[37,6679,6680],{"class":6244},">Cancel\u003C\u002F",[37,6682,564],{"class":6247},[37,6684,80],{"class":6244},[37,6686,6687,6689,6691],{"class":39,"line":583},[37,6688,309],{"class":6244},[37,6690,338],{"class":6247},[37,6692,80],{"class":6244},[6694,6695,6696,6697,6703],"note",{},"Use this for scenarios that require displaying upload progress. For small files where progress is not needed, you can use ",[6698,6699,6701],"a",{"href":6700},"\u002Fen\u002Fdocs\u002Fapi\u002Fapi-plugin",[33,6702,6217],{}," directly.",[6206,6705,6707],{"id":6706},"basic-multi-file-upload","Basic Multi-File Upload",[10,6709,6710,6713,6714,6717,6718,6721,6722,3472],{},[33,6711,6712],{},"fieldName"," determines the FormData field name (defaults to ",[33,6715,6716],{},"'file'","); ",[33,6719,6720],{},"upload()"," returns ",[33,6723,6724],{},"{ data, error, aborted }",[6726,6727],"component-example",{"name":6728},"composables-use-upload-progress-basic-example",[6206,6730,6732],{"id":6731},"single-file-multiple-files-and-extra-fields","Single File, Multiple Files and Extra Fields",[10,6734,6735,6736,6738,6739,6742,6743,6717,6745,6748],{},"Pass a ",[33,6737,3406],{}," for single-file upload or a ",[33,6740,6741],{},"File[]"," for multiple files (appended under the same ",[33,6744,6712],{},[33,6746,6747],{},"fields"," injects extra form fields submitted alongside the file:",[26,6750,6754],{"className":6751,"code":6752,"language":6753,"meta":22,"style":22},"language-ts shiki shiki-themes github-light github-light github-dark","await upload('\u002Fapi\u002Fupload', file, { fieldName: 'file' })\nawait upload('\u002Fapi\u002Fupload', [f1, f2, f3], { fieldName: 'files' })\n\nawait upload('\u002Fapi\u002Fupload', file, {\n  fieldName: 'avatar',\n  fields: { userId: '123', visibility: 'private' }\n})\n","ts",[33,6755,6756,6775,6792,6796,6809,6819,6833],{"__ignoreMap":22},[37,6757,6758,6761,6763,6765,6767,6770,6772],{"class":39,"line":40},[37,6759,6760],{"class":6264},"await",[37,6762,6416],{"class":6250},[37,6764,517],{"class":6244},[37,6766,6421],{"class":6257},[37,6768,6769],{"class":6244},", file, { fieldName: ",[37,6771,6716],{"class":6257},[37,6773,6774],{"class":6244}," })\n",[37,6776,6777,6779,6781,6783,6785,6788,6790],{"class":39,"line":83},[37,6778,6760],{"class":6264},[37,6780,6416],{"class":6250},[37,6782,517],{"class":6244},[37,6784,6421],{"class":6257},[37,6786,6787],{"class":6244},", [f1, f2, f3], { fieldName: ",[37,6789,3823],{"class":6257},[37,6791,6774],{"class":6244},[37,6793,6794],{"class":39,"line":109},[37,6795,273],{"emptyLinePlaceholder":270},[37,6797,6798,6800,6802,6804,6806],{"class":39,"line":138},[37,6799,6760],{"class":6264},[37,6801,6416],{"class":6250},[37,6803,517],{"class":6244},[37,6805,6421],{"class":6257},[37,6807,6808],{"class":6244},", file, {\n",[37,6810,6811,6814,6817],{"class":39,"line":165},[37,6812,6813],{"class":6244},"  fieldName: ",[37,6815,6816],{"class":6257},"'avatar'",[37,6818,2864],{"class":6244},[37,6820,6821,6824,6827,6829,6831],{"class":39,"line":192},[37,6822,6823],{"class":6244},"  fields: { userId: ",[37,6825,6826],{"class":6257},"'123'",[37,6828,4969],{"class":6244},[37,6830,4974],{"class":6257},[37,6832,244],{"class":6244},[37,6834,6835],{"class":39,"line":219},[37,6836,6837],{"class":6244},"})\n",[6726,6839],{"name":6840},"composables-use-upload-progress-single-example",[6206,6842,6844],{"id":6843},"timeout","Timeout",[10,6846,6847,6849,6850,6853,6854,6857,6858,3472],{},[33,6848,6843],{}," sets the upload timeout in milliseconds (0 or omitted means no timeout). On timeout the request is aborted with a ",[33,6851,6852],{},"TimeoutError"," and ",[33,6855,6856],{},"error.data.kind"," is ",[33,6859,6843],{},[6726,6861],{"name":6862},"composables-use-upload-progress-timeout-example",[6206,6864,6866],{"id":6865},"cross-origin-credentials","Cross-Origin Credentials",[26,6868,6870],{"className":6751,"code":6869,"language":6753,"meta":22,"style":22},"await upload('https:\u002F\u002Fother.example\u002Fupload', file, { withCredentials: true })\n",[33,6871,6872],{"__ignoreMap":22},[37,6873,6874,6876,6878,6880,6883,6886,6889],{"class":39,"line":40},[37,6875,6760],{"class":6264},[37,6877,6416],{"class":6250},[37,6879,517],{"class":6244},[37,6881,6882],{"class":6257},"'https:\u002F\u002Fother.example\u002Fupload'",[37,6884,6885],{"class":6244},", file, { withCredentials: ",[37,6887,6888],{"class":6267},"true",[37,6890,6774],{"class":6244},[6206,6892,6894],{"id":6893},"abort-upload","Abort Upload",[26,6896,6898],{"className":6751,"code":6897,"language":6753,"meta":22,"style":22},"const { status, upload, abort } = useUploadWithProgress()\n\nupload('\u002Fapi\u002Fupload', largeFile)\n\nfunction handleCancel() {\n  if (status.value === 'pending') abort()\n}\n",[33,6899,6900,6924,6928,6939,6943,6953,6972],{"__ignoreMap":22},[37,6901,6902,6904,6906,6908,6910,6912,6914,6916,6918,6920,6922],{"class":39,"line":40},[37,6903,90],{"class":6264},[37,6905,6294],{"class":6244},[37,6907,6302],{"class":6267},[37,6909,2882],{"class":6244},[37,6911,3795],{"class":6267},[37,6913,2882],{"class":6244},[37,6915,6320],{"class":6267},[37,6917,6323],{"class":6244},[37,6919,69],{"class":6264},[37,6921,3456],{"class":6250},[37,6923,300],{"class":6244},[37,6925,6926],{"class":39,"line":83},[37,6927,273],{"emptyLinePlaceholder":270},[37,6929,6930,6932,6934,6936],{"class":39,"line":109},[37,6931,3795],{"class":6250},[37,6933,517],{"class":6244},[37,6935,6421],{"class":6257},[37,6937,6938],{"class":6244},", largeFile)\n",[37,6940,6941],{"class":39,"line":138},[37,6942,273],{"emptyLinePlaceholder":270},[37,6944,6945,6948,6951],{"class":39,"line":165},[37,6946,6947],{"class":6264},"function",[37,6949,6950],{"class":6250}," handleCancel",[37,6952,6382],{"class":6244},[37,6954,6955,6957,6960,6962,6965,6968,6970],{"class":39,"line":192},[37,6956,6478],{"class":6264},[37,6958,6959],{"class":6244}," (status.value ",[37,6961,451],{"class":6264},[37,6963,6964],{"class":6257}," 'pending'",[37,6966,6967],{"class":6244},") ",[37,6969,6320],{"class":6250},[37,6971,300],{"class":6244},[37,6973,6974],{"class":39,"line":219},[37,6975,6513],{"class":6244},[10,6977,6978],{},"After aborting:",[6980,6981,6982,6998,7006,7016],"ul",{},[6983,6984,6985,6987,6988,6991,6992,6994,6995],"li",{},[33,6986,6302],{}," changes to ",[33,6989,6990],{},"'aborted'","; ",[33,6993,6297],{}," resets to ",[33,6996,6997],{},"0",[6983,6999,7000,7002,7003,7005],{},[33,7001,6311],{}," remains ",[33,7004,3431],{}," (not treated as failure)",[6983,7007,7008,7011,7012,7015],{},[33,7009,7010],{},"onSuccess"," \u002F ",[33,7013,7014],{},"onError"," are not called; no Toast is shown",[6983,7017,7018,6721,7020],{},[33,7019,6720],{},[33,7021,7022],{},"{ data: null, error: null, aborted: true }",[6206,7024,7026],{"id":7025},"authentication","Authentication",[10,7028,7029,7030,7033,7034,7037],{},"The token is automatically read from the session and injected into the ",[33,7031,7032],{},"Authorization"," header. You can override it with the same header name in ",[33,7035,7036],{},"headers"," (user value takes priority).",[26,7039,7041],{"className":6751,"code":7040,"language":6753,"meta":22,"style":22},"await upload('\u002Fapi\u002Fupload', file, {\n  headers: { Authorization: 'Bearer override' }\n})\n",[33,7042,7043,7055,7065],{"__ignoreMap":22},[37,7044,7045,7047,7049,7051,7053],{"class":39,"line":40},[37,7046,6760],{"class":6264},[37,7048,6416],{"class":6250},[37,7050,517],{"class":6244},[37,7052,6421],{"class":6257},[37,7054,6808],{"class":6244},[37,7056,7057,7060,7063],{"class":39,"line":83},[37,7058,7059],{"class":6244},"  headers: { Authorization: ",[37,7061,7062],{"class":6257},"'Bearer override'",[37,7064,244],{"class":6244},[37,7066,7067],{"class":39,"line":109},[37,7068,6837],{"class":6244},[6206,7070,7072],{"id":7071},"api","API",[7074,7075,7077],"h4",{"id":7076},"useuploadwithprogresst","useUploadWithProgress\u003CT>()",[10,7079,7080],{},[33,7081,7084,7086,7088,7091,7094,7096,7098,7100,7102,7104,7106,7108,7110,7112,7114,7116,7118,7120],{"className":7082,"language":7083,"style":22},"language-ts-type shiki shiki-themes github-light github-light github-dark","ts-type",[37,7085,6204],{"class":6250},[37,7087,47],{"class":6244},[37,7089,7090],{"class":6250},"T",[37,7092,7093],{"class":6244},">()",[37,7095,3472],{"class":6264},[37,7097,6294],{"class":6244},[37,7099,6297],{"class":6335},[37,7101,2882],{"class":6244},[37,7103,6302],{"class":6335},[37,7105,2882],{"class":6244},[37,7107,6229],{"class":6335},[37,7109,2882],{"class":6244},[37,7111,6311],{"class":6335},[37,7113,2882],{"class":6244},[37,7115,3795],{"class":6335},[37,7117,2882],{"class":6244},[37,7119,6320],{"class":6335},[37,7121,7122],{"class":6244}," }",[7124,7125,7127],"h5",{"id":7126},"returns","Returns",[7129,7130,7131,7139,7146,7153,7167,7264],"field-group",{},[7132,7133,7135,7136,7138],"field",{"name":6297,"type":7134},"Ref\u003Cnumber | null>","Upload progress, 0–100. Aligned with the download-side type, ",[33,7137,3431],{}," is retained as a possible value but does not occur in practice for uploads.",[7132,7140,7142,7143,6234],{"name":6302,"type":7141},"Ref\u003CTransferStatus>","Transfer status: ",[33,7144,7145],{},"'idle' | 'pending' | 'success' | 'error' | 'aborted'",[7132,7147,7149,7150,6234],{"name":6229,"type":7148},"Ref\u003CT | null>","Business data unwrapped by ",[33,7151,7152],{},"dataKey",[7132,7154,7156,7157,7159,7160,7163,7164,7166],{"name":6311,"type":7155},"Ref\u003CApiError | null>","Error object. Business errors are ",[33,7158,6233],{},"; HTTP\u002Fnetwork errors are ",[33,7161,7162],{},"Error",". ",[33,7165,3431],{}," on abort.",[7132,7168,7170,7173],{"name":6720,"type":7169},"(url: string, files: File | File[], options?: UploadWithProgressOptions\u003CT>) => Promise\u003CTransferResult\u003CT>>",[10,7171,7172],{},"Execute the upload.",[7174,7175,7176,7182,7252,7256],"collapsible",{},[10,7177,7178],{},[7179,7180,7181],"strong",{},"Parameters",[7129,7183,7184,7188,7191],{},[7132,7185],{"name":7186,"type":7187,":required":6888},"url","string",[7132,7189],{"name":3467,"type":7190,":required":6888},"File | File[]",[7132,7192,7195],{"name":7193,"type":7194},"options","UploadWithProgressOptions\u003CT>",[7174,7196,7197],{},[7129,7198,7199,7204,7207,7213,7217,7220,7231,7238,7242,7245,7249],{},[7132,7200,7201,7202,6234],{"name":6712,"type":7187},"Defaults to ",[33,7203,6716],{},[7132,7205],{"name":6747,"type":7206},"Record\u003Cstring, string | Blob>",[7132,7208,7210,7211,6234],{"name":7036,"type":7209},"Record\u003Cstring, string>","Merged with the endpoint headers; when auth is enabled the auth header is injected last and takes the highest priority, same as ",[33,7212,6217],{},[7132,7214],{"name":7215,"type":7216},"toast","RequestToastOptions | false",[7132,7218],{"name":7219,"type":7187},"endpoint",[7132,7221,7224,7225,7228,7229,6234],{"name":7222,"type":7223},"businessCheck","boolean","Whether to validate the business status code; inherits the endpoint config when omitted. When ",[33,7226,7227],{},"false",", still unwraps by ",[33,7230,7152],{},[7132,7232,7234,7235,7237],{"name":7233,"type":7223},"unwrap","Whether to unwrap by ",[33,7236,7152],{},"; inherits the endpoint config when omitted.",[7132,7239,7241],{"name":6843,"type":7240},"number","Timeout in milliseconds. 0 or omitted means no timeout.",[7132,7243],{"name":7244,"type":7223},"withCredentials",[7132,7246,7248],{"name":7010,"type":7247},"(data: T) => void","Receives the unwrapped business data.",[7132,7250],{"name":7014,"type":7251},"(error: ApiError) => void",[10,7253,7254],{},[7179,7255,7127],{},[10,7257,7258,6398,7261,6234],{},[33,7259,7260],{},"Promise\u003CTransferResult\u003CT>>",[33,7262,7263],{},"{ data: T | null, error: ApiError | null, aborted: boolean }",[7132,7265,7268,7269,7271,7272,6234],{"name":7266,"type":7267},"abort()","() => void","Abort the current upload; ",[33,7270,6302],{}," switches to ",[33,7273,6990],{},[6206,7275,7277],{"id":7276},"changelog","Changelog",[7279,7280],"commit-changelog",{"prefix":7281,"suffix":6753},"composables",[6201,7283,7285],{"id":7284},"usedownloadwithprogress","useDownloadWithProgress",[6206,7287,6209],{"id":7288},"usage-1",[10,7290,7291,7293,7294,7297,7298,6222,7300,7302,7303,6234],{},[33,7292,7285],{}," reads a streamed response through ",[33,7295,7296],{},"$api.raw"," and reports progress, so endpoint headers, auth, business validation, Toast, error normalization and ",[33,7299,6221],{},[33,7301,6225],{}," exactly; the request body is serialized by ofetch and every failure is an ",[33,7304,6233],{},[10,7306,7307,7308,7311,7312,7315,7316,7319,7320,7322,7323,6857,7325,7327],{},"When the backend returns ",[33,7309,7310],{},"application\u002Fjson",", business validation is applied and error responses are ",[7179,7313,7314],{},"not"," written to a file as binary. When binary data is returned, progress is calculated from ",[33,7317,7318],{},"content-length","; when ",[33,7321,7318],{}," is missing, ",[33,7324,6297],{},[33,7326,3431],{}," and the UI can switch to indeterminate accordingly.",[26,7329,7331],{"className":28,"code":7330,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nconst { progress, status, error, download, abort } = useDownloadWithProgress()\n\nasync function handleDownload() {\n  const { aborted, error: err } = await download('\u002Fapi\u002Fexport\u002Freport', {\n    filename: 'monthly-report.pdf',\n    onSuccess: name => console.log('Done', name)\n  })\n  if (aborted) return\n  if (err) console.error(err)\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CUButton :loading=\"status === 'pending'\" @click=\"handleDownload\">Download\u003C\u002FUButton>\n  \u003CUProgress\n    v-if=\"status === 'pending'\"\n    :model-value=\"progress ?? undefined\"\n    :max=\"100\"\n  \u002F>\n  \u003CUButton v-if=\"status === 'pending'\" @click=\"abort\">Cancel\u003C\u002FUButton>\n\u003C\u002Ftemplate>\n",[33,7332,7333,7349,7381,7385,7396,7428,7438,7460,7464,7472,7482,7486,7494,7498,7506,7546,7553,7568,7587,7601,7606,7642],{"__ignoreMap":22},[37,7334,7335,7337,7339,7341,7343,7345,7347],{"class":39,"line":40},[37,7336,47],{"class":6244},[37,7338,53],{"class":6247},[37,7340,59],{"class":6250},[37,7342,64],{"class":6250},[37,7344,69],{"class":6244},[37,7346,75],{"class":6257},[37,7348,80],{"class":6244},[37,7350,7351,7353,7355,7357,7359,7361,7363,7365,7367,7369,7371,7373,7375,7377,7379],{"class":39,"line":83},[37,7352,90],{"class":6264},[37,7354,6294],{"class":6244},[37,7356,6297],{"class":6267},[37,7358,2882],{"class":6244},[37,7360,6302],{"class":6267},[37,7362,2882],{"class":6244},[37,7364,6311],{"class":6267},[37,7366,2882],{"class":6244},[37,7368,512],{"class":6267},[37,7370,2882],{"class":6244},[37,7372,6320],{"class":6267},[37,7374,6323],{"class":6244},[37,7376,69],{"class":6264},[37,7378,295],{"class":6250},[37,7380,300],{"class":6244},[37,7382,7383],{"class":39,"line":109},[37,7384,273],{"emptyLinePlaceholder":270},[37,7386,7387,7389,7391,7394],{"class":39,"line":138},[37,7388,6373],{"class":6264},[37,7390,6376],{"class":6264},[37,7392,7393],{"class":6250}," handleDownload",[37,7395,6382],{"class":6244},[37,7397,7398,7400,7402,7404,7406,7408,7410,7412,7414,7416,7418,7421,7423,7426],{"class":39,"line":165},[37,7399,6387],{"class":6264},[37,7401,6294],{"class":6244},[37,7403,6406],{"class":6267},[37,7405,2882],{"class":6244},[37,7407,6311],{"class":6335},[37,7409,6398],{"class":6244},[37,7411,6401],{"class":6267},[37,7413,6323],{"class":6244},[37,7415,69],{"class":6264},[37,7417,6413],{"class":6264},[37,7419,7420],{"class":6250}," download",[37,7422,517],{"class":6244},[37,7424,7425],{"class":6257},"'\u002Fapi\u002Fexport\u002Freport'",[37,7427,2846],{"class":6244},[37,7429,7430,7433,7436],{"class":39,"line":192},[37,7431,7432],{"class":6244},"    filename: ",[37,7434,7435],{"class":6257},"'monthly-report.pdf'",[37,7437,2864],{"class":6244},[37,7439,7440,7442,7444,7446,7448,7450,7452,7454,7457],{"class":39,"line":219},[37,7441,6442],{"class":6250},[37,7443,6398],{"class":6244},[37,7445,3486],{"class":6335},[37,7447,6450],{"class":6264},[37,7449,6453],{"class":6244},[37,7451,6456],{"class":6250},[37,7453,517],{"class":6244},[37,7455,7456],{"class":6257},"'Done'",[37,7458,7459],{"class":6244},", name)\n",[37,7461,7462],{"class":39,"line":247},[37,7463,6469],{"class":6244},[37,7465,7466,7468,7470],{"class":39,"line":266},[37,7467,6478],{"class":6264},[37,7469,6481],{"class":6244},[37,7471,6484],{"class":6264},[37,7473,7474,7476,7478,7480],{"class":39,"line":276},[37,7475,6478],{"class":6264},[37,7477,6491],{"class":6244},[37,7479,6311],{"class":6250},[37,7481,6496],{"class":6244},[37,7483,7484],{"class":39,"line":303},[37,7485,6513],{"class":6244},[37,7487,7488,7490,7492],{"class":39,"line":320},[37,7489,309],{"class":6244},[37,7491,53],{"class":6247},[37,7493,80],{"class":6244},[37,7495,7496],{"class":39,"line":328},[37,7497,273],{"emptyLinePlaceholder":270},[37,7499,7500,7502,7504],{"class":39,"line":345},[37,7501,47],{"class":6244},[37,7503,338],{"class":6247},[37,7505,80],{"class":6244},[37,7507,7508,7510,7512,7514,7516,7518,7520,7522,7524,7526,7528,7530,7532,7534,7537,7539,7542,7544],{"class":39,"line":377},[37,7509,351],{"class":6244},[37,7511,564],{"class":6247},[37,7513,746],{"class":6244},[37,7515,432],{"class":6250},[37,7517,69],{"class":6244},[37,7519,441],{"class":6257},[37,7521,6611],{"class":6244},[37,7523,451],{"class":6264},[37,7525,6616],{"class":6257},[37,7527,6578],{"class":6244},[37,7529,494],{"class":6250},[37,7531,69],{"class":6244},[37,7533,441],{"class":6257},[37,7535,7536],{"class":6244},"handleDownload",[37,7538,441],{"class":6257},[37,7540,7541],{"class":6244},">Download\u003C\u002F",[37,7543,564],{"class":6247},[37,7545,80],{"class":6244},[37,7547,7548,7550],{"class":39,"line":407},[37,7549,351],{"class":6244},[37,7551,7552],{"class":6247},"UProgress\n",[37,7554,7555,7558,7560,7562,7564,7566],{"class":39,"line":421},[37,7556,7557],{"class":6264},"    v-if",[37,7559,69],{"class":6244},[37,7561,441],{"class":6257},[37,7563,6611],{"class":6244},[37,7565,451],{"class":6264},[37,7567,456],{"class":6257},[37,7569,7570,7573,7575,7577,7579,7581,7583,7585],{"class":39,"line":459},[37,7571,7572],{"class":6244},"    :",[37,7574,855],{"class":6250},[37,7576,69],{"class":6244},[37,7578,441],{"class":6257},[37,7580,6627],{"class":6244},[37,7582,873],{"class":6264},[37,7584,878],{"class":6267},[37,7586,532],{"class":6257},[37,7588,7589,7591,7593,7595,7597,7599],{"class":39,"line":483},[37,7590,7572],{"class":6244},[37,7592,891],{"class":6250},[37,7594,69],{"class":6244},[37,7596,441],{"class":6257},[37,7598,904],{"class":6267},[37,7600,532],{"class":6257},[37,7602,7603],{"class":39,"line":535},[37,7604,7605],{"class":6244},"  \u002F>\n",[37,7607,7608,7610,7612,7614,7616,7618,7620,7622,7624,7626,7628,7630,7632,7634,7636,7638,7640],{"class":39,"line":544},[37,7609,351],{"class":6244},[37,7611,564],{"class":6247},[37,7613,4283],{"class":6264},[37,7615,69],{"class":6244},[37,7617,441],{"class":6257},[37,7619,6611],{"class":6244},[37,7621,451],{"class":6264},[37,7623,6616],{"class":6257},[37,7625,6578],{"class":6244},[37,7627,494],{"class":6250},[37,7629,69],{"class":6244},[37,7631,441],{"class":6257},[37,7633,6320],{"class":6244},[37,7635,441],{"class":6257},[37,7637,6680],{"class":6244},[37,7639,564],{"class":6247},[37,7641,80],{"class":6244},[37,7643,7644,7646,7648],{"class":39,"line":553},[37,7645,309],{"class":6244},[37,7647,338],{"class":6247},[37,7649,80],{"class":6244},[6694,7651,7652,7653,6703],{},"Use this for large file exports, bulk downloads and similar scenarios. For small files where progress is not needed, use ",[6698,7654,7655],{"href":6700},[33,7656,6217],{},[6206,7658,7660],{"id":7659},"basic-download","Basic Download",[10,7662,7663,7664,7666,7667,7669],{},"When ",[33,7665,7318],{}," is known, progress updates proportionally; ",[33,7668,7266],{}," stops the stream read:",[6726,7671],{"name":7672},"composables-use-download-progress-basic-example",[6206,7674,7676],{"id":7675},"filename-resolution","Filename Resolution",[10,7678,7679],{},"Priority order:",[7681,7682,7683,7688,7695,7698],"ol",{},[6983,7684,7685],{},[33,7686,7687],{},"options.filename",[6983,7689,7690,7691,7694],{},"Response header ",[33,7692,7693],{},"Content-Disposition"," (supports RFC 5987 encoding)",[6983,7696,7697],{},"Last segment of the URL pathname (query string is automatically stripped)",[6983,7699,7700],{},[33,7701,7702],{},"'download'",[26,7704,7706],{"className":6751,"code":7705,"language":6753,"meta":22,"style":22},"await download('\u002Fapi\u002Fexport?token=abc')\n\u002F\u002F Automatically uses \"export\" as the fallback filename; query string does not pollute the name\n",[33,7707,7708,7721],{"__ignoreMap":22},[37,7709,7710,7712,7714,7716,7719],{"class":39,"line":40},[37,7711,6760],{"class":6264},[37,7713,7420],{"class":6250},[37,7715,517],{"class":6244},[37,7717,7718],{"class":6257},"'\u002Fapi\u002Fexport?token=abc'",[37,7720,3436],{"class":6244},[37,7722,7723],{"class":39,"line":83},[37,7724,7726],{"class":7725},"sCsY4","\u002F\u002F Automatically uses \"export\" as the fallback filename; query string does not pollute the name\n",[6206,7728,7730],{"id":7729},"indeterminate-progress","Indeterminate Progress",[10,7732,7733,7734,7736,7737,6857,7739,7741,7742,7744,7745,7748],{},"When the response is missing ",[33,7735,7318],{}," (e.g. chunked transfer encoding), ",[33,7738,6297],{},[33,7740,3431],{},". Using nullish-coalescing to map it to ",[33,7743,846],{},"'s ",[33,7746,7747],{},":model-value"," automatically activates the indeterminate state:",[6726,7750],{"name":7751},"composables-use-download-progress-chunked-example",[6206,7753,7755],{"id":7754},"custom-filename","Custom Filename",[10,7757,7758,7760],{},[33,7759,7687],{}," overrides the response header and URL inference to force a specific download filename:",[6726,7762],{"name":7763},"composables-use-download-progress-custom-example",[6206,7765,7767],{"id":7766},"post-export","POST Export",[10,7769,7770,7773,7774,7777,7778,7781,7782,3472],{},[33,7771,7772],{},"method: 'POST'"," + ",[33,7775,7776],{},"body"," puts filter criteria in the request body; ",[33,7779,7780],{},"Content-Type"," is automatically set to ",[33,7783,7310],{},[6726,7785],{"name":7786},"composables-use-download-progress-post-example",[6206,7788,7790],{"id":7789},"abort-download","Abort Download",[26,7792,7794],{"className":6751,"code":7793,"language":6753,"meta":22,"style":22},"const { status, download, abort } = useDownloadWithProgress()\n\ndownload('\u002Fapi\u002Fexport\u002Flarge.zip')\n\nfunction handleCancel() {\n  if (status.value === 'pending') abort()\n}\n",[33,7795,7796,7820,7824,7835,7839,7847,7863],{"__ignoreMap":22},[37,7797,7798,7800,7802,7804,7806,7808,7810,7812,7814,7816,7818],{"class":39,"line":40},[37,7799,90],{"class":6264},[37,7801,6294],{"class":6244},[37,7803,6302],{"class":6267},[37,7805,2882],{"class":6244},[37,7807,512],{"class":6267},[37,7809,2882],{"class":6244},[37,7811,6320],{"class":6267},[37,7813,6323],{"class":6244},[37,7815,69],{"class":6264},[37,7817,295],{"class":6250},[37,7819,300],{"class":6244},[37,7821,7822],{"class":39,"line":83},[37,7823,273],{"emptyLinePlaceholder":270},[37,7825,7826,7828,7830,7833],{"class":39,"line":109},[37,7827,512],{"class":6250},[37,7829,517],{"class":6244},[37,7831,7832],{"class":6257},"'\u002Fapi\u002Fexport\u002Flarge.zip'",[37,7834,3436],{"class":6244},[37,7836,7837],{"class":39,"line":138},[37,7838,273],{"emptyLinePlaceholder":270},[37,7840,7841,7843,7845],{"class":39,"line":165},[37,7842,6947],{"class":6264},[37,7844,6950],{"class":6250},[37,7846,6382],{"class":6244},[37,7848,7849,7851,7853,7855,7857,7859,7861],{"class":39,"line":192},[37,7850,6478],{"class":6264},[37,7852,6959],{"class":6244},[37,7854,451],{"class":6264},[37,7856,6964],{"class":6257},[37,7858,6967],{"class":6244},[37,7860,6320],{"class":6250},[37,7862,300],{"class":6244},[37,7864,7865],{"class":39,"line":219},[37,7866,6513],{"class":6244},[10,7868,6978],{},[6980,7870,7871,7881,7887,7892],{},[6983,7872,7873,6987,7875,6991,7877,6994,7879],{},[33,7874,6302],{},[33,7876,6990],{},[33,7878,6297],{},[33,7880,6997],{},[6983,7882,7883,7002,7885,7005],{},[33,7884,6311],{},[33,7886,3431],{},[6983,7888,7889,7891],{},[33,7890,7014],{}," is not called; no Toast is shown",[6983,7893,7894,6721,7897],{},[33,7895,7896],{},"download()",[33,7898,7022],{},[6206,7900,7026],{"id":7901},"authentication-1",[10,7903,7029,7904,7906,7907,7909],{},[33,7905,7032],{}," header. Override it in ",[33,7908,7036],{}," if needed (user value takes priority).",[26,7911,7913],{"className":6751,"code":7912,"language":6753,"meta":22,"style":22},"await download('\u002Fapi\u002Fexport\u002Fprivate.pdf', {\n  headers: { 'X-Custom': 'value' }\n})\n",[33,7914,7915,7928,7943],{"__ignoreMap":22},[37,7916,7917,7919,7921,7923,7926],{"class":39,"line":40},[37,7918,6760],{"class":6264},[37,7920,7420],{"class":6250},[37,7922,517],{"class":6244},[37,7924,7925],{"class":6257},"'\u002Fapi\u002Fexport\u002Fprivate.pdf'",[37,7927,2846],{"class":6244},[37,7929,7930,7933,7936,7938,7941],{"class":39,"line":83},[37,7931,7932],{"class":6244},"  headers: { ",[37,7934,7935],{"class":6257},"'X-Custom'",[37,7937,6398],{"class":6244},[37,7939,7940],{"class":6257},"'value'",[37,7942,244],{"class":6244},[37,7944,7945],{"class":39,"line":109},[37,7946,6837],{"class":6244},[6206,7948,7072],{"id":7949},"api-1",[7074,7951,7953],{"id":7952},"usedownloadwithprogresst","useDownloadWithProgress\u003CT>()",[10,7955,7956],{},[33,7957,7958,7960,7962,7964,7967,7970,7972,7974,7976,7978,7980,7982,7984,7986,7988,7990,7992,7994,7996,7998],{"className":7082,"language":7083,"style":22},[37,7959,7285],{"class":6250},[37,7961,47],{"class":6244},[37,7963,7090],{"class":6250},[37,7965,7966],{"class":6244}," = ",[37,7968,7969],{"class":6250},"Blob",[37,7971,7093],{"class":6244},[37,7973,3472],{"class":6264},[37,7975,6294],{"class":6244},[37,7977,6297],{"class":6335},[37,7979,2882],{"class":6244},[37,7981,6302],{"class":6335},[37,7983,2882],{"class":6244},[37,7985,6229],{"class":6335},[37,7987,2882],{"class":6244},[37,7989,6311],{"class":6335},[37,7991,2882],{"class":6244},[37,7993,512],{"class":6335},[37,7995,2882],{"class":6244},[37,7997,6320],{"class":6335},[37,7999,7122],{"class":6244},[7124,8001,7127],{"id":8002},"returns-1",[7129,8004,8005,8014,8018,8024,8032,8102],{},[7132,8006,8007,8008,8010,8011,8013],{"name":6297,"type":7134},"Download progress, 0–100. ",[33,8009,3431],{}," when ",[33,8012,7318],{}," is missing; the UI should switch to indeterminate in that case.",[7132,8015,7142,8016,6234],{"name":6302,"type":7141},[33,8017,7145],{},[7132,8019,8020,8021,8023],{"name":6229,"type":7148},"In the binary path, a ",[33,8022,7969],{},". In the JSON path, the unwrapped business data.",[7132,8025,7156,8026,7159,8028,7163,8030,7166],{"name":6311,"type":7155},[33,8027,6233],{},[33,8029,7162],{},[33,8031,3431],{},[7132,8033,8035,8038],{"name":7896,"type":8034},"(url: string, options?: DownloadWithProgressOptions) => Promise\u003CTransferResult\u003CT>>",[10,8036,8037],{},"Execute the download.",[7174,8039,8040,8044,8092,8096],{},[10,8041,8042],{},[7179,8043,7181],{},[7129,8045,8046,8048],{},[7132,8047],{"name":7186,"type":7187,":required":6888},[7132,8049,8051],{"name":7193,"type":8050},"DownloadWithProgressOptions",[7174,8052,8053],{},[7129,8054,8055,8062,8066,8069,8073,8075,8077,8083,8087,8090],{},[7132,8056,7201,8059,6234],{"name":8057,"type":8058},"method","'GET' | 'POST'",[33,8060,8061],{},"'GET'",[7132,8063,8065],{"name":7776,"type":8064},"unknown","Serialized to JSON for non-GET requests.",[7132,8067],{"name":8068,"type":7187},"filename",[7132,8070,7210,8071,6234],{"name":7036,"type":7209},[33,8072,6217],{},[7132,8074],{"name":7215,"type":7216},[7132,8076],{"name":7219,"type":7187},[7132,8078,7224,8079,7228,8081,6234],{"name":7222,"type":7223},[33,8080,7227],{},[33,8082,7152],{},[7132,8084,7234,8085,7237],{"name":7233,"type":7223},[33,8086,7152],{},[7132,8088],{"name":7010,"type":8089},"(filename: string) => void",[7132,8091],{"name":7014,"type":7251},[10,8093,8094],{},[7179,8095,7127],{},[10,8097,8098,6398,8100,6234],{},[33,8099,7260],{},[33,8101,7263],{},[7132,8103,8104,8105,7271,8107,6234],{"name":7266,"type":7267},"Abort the current download; ",[33,8106,6302],{},[33,8108,6990],{},[6206,8110,7277],{"id":8111},"changelog-1",[7279,8113],{"prefix":7281,"suffix":6753},[1062,8115,8116],{},"html pre.shiki code .sxrX7, html code.shiki .sxrX7{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sovSZ, html code.shiki .sovSZ{--shiki-light:#22863A;--shiki-default:#22863A;--shiki-dark:#85E89D}html pre.shiki code .snPdu, html code.shiki .snPdu{--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sIIMD, html code.shiki .sIIMD{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .s8jYJ, html code.shiki .s8jYJ{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sBjJW, html code.shiki .sBjJW{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sP4rz, html code.shiki .sP4rz{--shiki-light:#E36209;--shiki-default:#E36209;--shiki-dark:#FFAB70}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sCsY4, html code.shiki .sCsY4{--shiki-light:#6A737D;--shiki-default:#6A737D;--shiki-dark:#6A737D}",{"title":22,"searchDepth":83,"depth":83,"links":8118},[8119,8130],{"id":6203,"depth":83,"text":6204,"children":8120},[8121,8122,8123,8124,8125,8126,8127,8128,8129],{"id":6208,"depth":109,"text":6209},{"id":6706,"depth":109,"text":6707},{"id":6731,"depth":109,"text":6732},{"id":6843,"depth":109,"text":6844},{"id":6865,"depth":109,"text":6866},{"id":6893,"depth":109,"text":6894},{"id":7025,"depth":109,"text":7026},{"id":7071,"depth":109,"text":7072},{"id":7276,"depth":109,"text":7277},{"id":7284,"depth":83,"text":7285,"children":8131},[8132,8133,8134,8135,8136,8137,8138,8139,8140,8141],{"id":7288,"depth":109,"text":6209},{"id":7659,"depth":109,"text":7660},{"id":7675,"depth":109,"text":7676},{"id":7729,"depth":109,"text":7730},{"id":7754,"depth":109,"text":7755},{"id":7766,"depth":109,"text":7767},{"id":7789,"depth":109,"text":7790},{"id":7901,"depth":109,"text":7026},{"id":7949,"depth":109,"text":7072},{"id":8111,"depth":109,"text":7277},null,"md",false,{},"\u002Fen\u002Fdocs\u002Fapi\u002Fupload-download",{"title":6196,"description":15},{"loc":8146},"en\u002Fdocs\u002F4.api\u002F5.upload-download","qq5jvEGVW7TizLGVeVQpdPs-dkE2Vgy3GDEMZKI9p4o",[8152],{"title":8153,"path":8154,"stem":8155,"children":8156,"page":8144},"Docs","\u002Fen\u002Fdocs","en\u002Fdocs",[8157,8196,8252,8290,8321],{"title":8158,"path":8159,"stem":8160,"children":8161,"category":8142,"description":8142,"icon":8195},"Getting Started","\u002Fen\u002Fdocs\u002Fgetting-started","en\u002Fdocs\u002F1.getting-started\u002F1.index",[8162,8165,8170,8175,8180,8185,8190],{"title":8163,"path":8159,"stem":8160,"category":8142,"description":8164},"Introduction","Explore forms, data tables, components, and API integration in Movk Nuxt and choose a setup for Nuxt or Vue + Vite.",{"title":8166,"path":8167,"stem":8168,"category":8142,"description":8169},"Installation","\u002Fen\u002Fdocs\u002Fgetting-started\u002Finstallation","en\u002Fdocs\u002F1.getting-started\u002F2.installation","Install and configure the Movk Nuxt module in a Nuxt 4 project.",{"title":8171,"path":8172,"stem":8173,"category":8142,"description":8174},"Module Configuration","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fconfiguration","en\u002Fdocs\u002F1.getting-started\u002F3.configuration","Configure component prefix, theme colors, fonts, API endpoints, auth strategy, response parsing rules and Toast notification behavior.",{"title":8176,"path":8177,"stem":8178,"category":8142,"description":8179},"Vue \u002F Vite","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fvue","en\u002Fdocs\u002F1.getting-started\u002F4.vue","Use Movk standalone components, theming and composables in a plain Vue + Vite project without Nuxt.",{"title":8181,"path":8182,"stem":8183,"category":8142,"description":8184},"Theme System","\u002Fen\u002Fdocs\u002Fgetting-started\u002Ftheme","en\u002Fdocs\u002F1.getting-started\u002F5.theme","Manage colors, radius, icon sets and dark mode through module defaults, the ThemePicker component and the useTheme composable, with build-time font configuration.",{"title":8186,"path":8187,"stem":8188,"category":8142,"description":8189},"Migrate to v2","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fmigration","en\u002Fdocs\u002F1.getting-started\u002F6.migration","Breaking changes to handle when upgrading from v1 to v2.",{"title":8191,"path":8192,"stem":8193,"category":8142,"description":8194},"AI Integration","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fai","en\u002Fdocs\u002F1.getting-started\u002F7.ai","Help AI assistants understand Movk Nuxt through MCP, llms.txt and Skills.","i-lucide-square-play",{"title":8197,"category":8142,"description":8142,"icon":8198,"path":8199,"stem":8200,"children":8201,"page":8144},"Forms","i-lucide-square-pen","\u002Fen\u002Fdocs\u002Fauto-form","en\u002Fdocs\u002F2.auto-form",[8202,8207,8212,8217,8222,8227,8232,8237,8242,8247],{"title":8203,"path":8204,"stem":8205,"category":8142,"description":8206},"Quickstart","\u002Fen\u002Fdocs\u002Fauto-form\u002Fquickstart","en\u002Fdocs\u002F2.auto-form\u002F1.quickstart","Learn the core design philosophy and basic usage of AutoForm.",{"title":8208,"path":8209,"stem":8210,"category":8142,"description":8211},"Recipes","\u002Fen\u002Fdocs\u002Fauto-form\u002Frecipes","en\u002Fdocs\u002F2.auto-form\u002F10.recipes","Real-world AutoForm scenarios — login, grouped registration validation, multi-file upload and horizontal search form.",{"title":8213,"path":8214,"stem":8215,"category":8142,"description":8216},"Field Types","\u002Fen\u002Fdocs\u002Fauto-form\u002Ffield-types","en\u002Fdocs\u002F2.auto-form\u002F2.field-types","Mapping of afz field types to controls and their configuration.",{"title":8218,"path":8219,"stem":8220,"category":8142,"description":8221},"Objects and Arrays","\u002Fen\u002Fdocs\u002Fauto-form\u002Fobject-array","en\u002Fdocs\u002F2.auto-form\u002F3.object-array","Rendering and editing nested object and dynamic array fields.",{"title":8223,"path":8224,"stem":8225,"category":8142,"description":8226},"Controls","\u002Fen\u002Fdocs\u002Fauto-form\u002Fcontrols","en\u002Fdocs\u002F2.auto-form\u002F4.controls","Map schema fields to Nuxt UI controls via the type field, or register and inject custom Vue components to extend form fields.",{"title":8228,"path":8229,"stem":8230,"category":8142,"description":8231},"Metadata and Layout","\u002Fen\u002Fdocs\u002Fauto-form\u002Fmetadata-layout","en\u002Fdocs\u002F2.auto-form\u002F5.metadata-layout","Configure field properties through meta and arrange them with afz.layout.",{"title":8233,"path":8234,"stem":8235,"category":8142,"description":8236},"Slots","\u002Fen\u002Fdocs\u002Fauto-form\u002Fslots","en\u002Fdocs\u002F2.auto-form\u002F6.slots","Customize AutoForm's header\u002Ffooter, field controls, before\u002Fafter field and layout content via named slots.",{"title":8238,"path":8239,"stem":8240,"category":8142,"description":8241},"Reactivity and Submit","\u002Fen\u002Fdocs\u002Fauto-form\u002Freactive-submit","en\u002Fdocs\u002F2.auto-form\u002F7.reactive-submit","Reactive linkage between fields and form submission handling.",{"title":8243,"path":8244,"stem":8245,"category":8142,"description":8246},"SearchForm","\u002Fen\u002Fdocs\u002Fauto-form\u002Fsearch-form","en\u002Fdocs\u002F2.auto-form\u002F8.search-form","A schema-driven, collapsible search form component.",{"title":8248,"path":8249,"stem":8250,"category":8142,"description":8251},"useAutoForm","\u002Fen\u002Fdocs\u002Fauto-form\u002Fuse-auto-form","en\u002Fdocs\u002F2.auto-form\u002F9.use-auto-form","A composable for creating typed Zod schemas and managing AutoForm controls.",{"title":8253,"path":8254,"stem":8255,"children":8256,"category":8142,"description":8142,"icon":8289},"DataTable","\u002Fen\u002Fdocs\u002Fdata-table","en\u002Fdocs\u002F3.data-table\u002F1.index",[8257,8259,8264,8269,8274,8279,8284],{"title":8163,"path":8254,"stem":8255,"category":8142,"description":8258},"A declarative data table based on TanStack Table, with column configuration, selection, expansion, tree data, pagination, load more and complete API reference.",{"title":8260,"path":8261,"stem":8262,"category":8142,"description":8263},"Appearance","\u002Fen\u002Fdocs\u002Fdata-table\u002Fappearance","en\u002Fdocs\u002F3.data-table\u002F2.appearance","Component style overrides, pagination style overrides, stripe and borders, visual density, fit-content width, empty-cell placeholders and sticky header.",{"title":8265,"path":8266,"stem":8267,"category":8142,"description":8268},"Columns","\u002Fen\u002Fdocs\u002Fdata-table\u002Fcolumns","en\u002Fdocs\u002F3.data-table\u002F3.columns","Data column configuration — fixed columns, sorting, column pinning, column resize, text truncation, tooltips, visibility and functional per-column configuration.",{"title":8270,"path":8271,"stem":8272,"category":8142,"description":8273},"Special Columns","\u002Fen\u002Fdocs\u002Fdata-table\u002Fspecial-columns","en\u002Fdocs\u002F3.data-table\u002F4.special-columns","Configuration for selection, index, row-pinning and actions columns — including tree selection strategies, dynamic button props and confirmation dialogs.",{"title":8275,"path":8276,"stem":8277,"category":8142,"description":8278},"Rows & Interaction","\u002Fen\u002Fdocs\u002Fdata-table\u002Frows","en\u002Fdocs\u002F3.data-table\u002F5.rows","Row selection, expandable detail slot, click behaviors, dynamic row class\u002Fstyle, hover, context menu and imperative control.",{"title":8280,"path":8281,"stem":8282,"category":8142,"description":8283},"Tree Data","\u002Fen\u002Fdocs\u002Fdata-table\u002Ftree","en\u002Fdocs\u002F3.data-table\u002F6.tree","Enable tree-mode tables via childrenKey — configure expansion, cascade selection strategies, indentation and read selection results.",{"title":8285,"path":8286,"stem":8287,"category":8142,"description":8288},"Pagination & Load More","\u002Fen\u002Fdocs\u002Fdata-table\u002Fpagination","en\u002Fdocs\u002F3.data-table\u002F7.pagination","Client-side auto pagination, server-side manual pagination with loading state, and bottom-trigger load-more for infinite scroll.","i-lucide-table",{"title":7072,"path":8291,"stem":8292,"children":8293,"category":8142,"description":8142,"icon":8320},"\u002Fen\u002Fdocs\u002Fapi","en\u002Fdocs\u002F4.api\u002F1.index",[8294,8297,8300,8305,8309,8310,8315],{"title":8295,"path":8291,"stem":8292,"category":8142,"description":8296},"Overview","Nuxt data-fetching fundamentals and the core concepts and architecture of the Movk Nuxt API system.",{"title":6217,"path":6700,"stem":8298,"category":8142,"description":8299},"en\u002Fdocs\u002F4.api\u002F2.api-plugin","The enhanced $fetch instance created by the api.factory plugin, supporting auth injection, data unwrapping, business code checking and multi-endpoint switching.",{"title":8301,"path":8302,"stem":8303,"category":8142,"description":8304},"Hooks","\u002Fen\u002Fdocs\u002Fapi\u002Fhooks","en\u002Fdocs\u002F4.api\u002F3.hooks","Extend API system behavior via Nuxt runtime hooks — global request interception, error handling and custom 401 logic.",{"title":6225,"path":8306,"stem":8307,"category":8142,"description":8308},"\u002Fen\u002Fdocs\u002Fapi\u002Fuse-api-fetch","en\u002Fdocs\u002F4.api\u002F4.use-api-fetch","An API request composable built on Nuxt useFetch, providing automatic authentication, business status code checking and Toast notifications.",{"title":6196,"path":8146,"stem":8149,"category":8142,"description":15},{"title":8311,"path":8312,"stem":8313,"category":8142,"description":8314},"Streaming","\u002Fen\u002Fdocs\u002Fapi\u002Fstream","en\u002Fdocs\u002F4.api\u002F6.stream","SSE streaming requests and the AI SDK chat transport.",{"title":8316,"path":8317,"stem":8318,"category":8142,"description":8319},"API Architecture","\u002Fen\u002Fdocs\u002Fapi\u002Farchitecture","en\u002Fdocs\u002F4.api\u002F7.architecture","Clarify @movk\u002Fnuxt's responsibility boundary, organize direct backend calls, same-origin proxies, and minimal BFFs with lean layers, and wire up both authentication patterns.","i-lucide-cloud",{"title":8322,"category":8142,"description":8142,"icon":8323,"path":8324,"stem":8325,"children":8326,"page":8144},"Components","i-lucide-box","\u002Fen\u002Fdocs\u002Fcomponents","en\u002Fdocs\u002F5.components",[8327,8333,8339],{"title":8328,"path":8329,"stem":8330,"category":8331,"description":8332},"DatePicker","\u002Fen\u002Fdocs\u002Fcomponents\u002Fdate-picker","en\u002Fdocs\u002F5.components\u002Fdate-picker","advanced","An internationalized date picker component.",{"title":8334,"path":8335,"stem":8336,"category":8337,"description":8338},"MessageBox","\u002Fen\u002Fdocs\u002Fcomponents\u002Fmessage-box","en\u002Fdocs\u002F5.components\u002Fmessage-box","feedback","A modal message dialog offering both declarative and programmatic usage.",{"title":8340,"path":8341,"stem":8342,"category":8331,"description":8343,"badge":8344},"Tree","\u002Fen\u002Fdocs\u002Fcomponents\u002Ftree","en\u002Fdocs\u002F5.components\u002Ftree","A tree component built on Nuxt UI Tree, adding search, lazy loading, toolbar, checkboxes, and parent\u002Fchild strategy.","v1.4.2",{"data":8346,"body":8347},{},{"type":6,"children":8348},[8349],{"type":9,"tag":10,"props":8350,"children":8351},{},[8352,8354],{"type":14,"value":8353},"Copyright © 2025 - 2026 YiXuan - ",{"type":9,"tag":37,"props":8355,"children":8358},{"className":8356},[8357],"text-highlighted",[8359],{"type":14,"value":8360},"MIT License",[8362,8363],{"title":6225,"path":8306,"stem":8307,"description":8308,"children":-1},{"title":8311,"path":8312,"stem":8313,"description":8314,"children":-1},1796262161939,"57ec5f4d-51f0-47ee-be90-2d13383383df"]