Files
YG_FT/frontend/dist/assets/vnode-BBSgohgu.js

2 lines
792 B
JavaScript
Raw Permalink Normal View History

2026-07-27 09:12:47 +08:00
import{an as r,M as u,a6 as p,bj as f,aK as m,cI as i,cJ as c}from"./index-_T_ZwAU8.js";const b="utils/vue/vnode";function g(s){return r(s)&&s.type===u}function y(s){return r(s)&&s.type===f}function E(s){return r(s)&&!g(s)&&!y(s)}const l=s=>{if(!r(s))return m(b,"[getNormalizedProps] must be a VNode"),{};const o=s.props||{},t=(r(s.type)?s.type.props:void 0)||{},e={};return Object.keys(t).forEach(a=>{i(t[a],"default")&&(e[a]=t[a].default)}),Object.keys(o).forEach(a=>{e[c(a)]=o[a]}),e},n=s=>{const o=p(s)?s:[s],t=[];return o.forEach(e=>{var a;p(e)?t.push(...n(e)):r(e)&&((a=e.component)!=null&&a.subTree)?t.push(e,...n(e.component.subTree)):r(e)&&p(e.children)?t.push(...n(e.children)):r(e)&&e.shapeFlag===2?t.push(...n(e.type())):t.push(e)}),t};export{E as a,y as b,n as f,l as g,g as i};