mirror of
https://github.com/silenty4ng/k5web
synced 2024-11-14 14:33:23 +00:00
6 lines
881 B
JavaScript
6 lines
881 B
JavaScript
import{f as h,i as u}from"./index.b6739c82.js";import{bj as p,aK as f,g as d}from"./arco.7f845a67.js";/**
|
|
* tdesign v1.9.4
|
|
* (c) 2024 tdesign
|
|
* @license MIT
|
|
*/function _(){var i=d();return function(l,r){var t,n;r||(r=i.slots);var c=((t=r)===null||t===void 0||(n=t.default)===null||n===void 0?void 0:n.call(t))||[],s=[],v=function o(e){if(!!u(e))return e.forEach(function(a){if(a.children&&u(a.children)){if(a.type!==f)return;o(a.children)}else s.push(a)}),s};return v(c).filter(function(o){var e;return(e=o.type.name)===null||e===void 0?void 0:e.endsWith(l)})}}function g(){var i=d();return function(){var l,r=i.slots,t=(r==null||(l=r.default)===null||l===void 0?void 0:l.call(r))||[];return t.filter(function(n){return h(n.type)==="symbol"&&!n.children?!1:n.type!==p}).map(function(n){return n.children&&u(n.children)&&n.type===f?n.children:n}).flat()}}export{_ as a,g as u};
|