UNPKG

ll-package

Version:

2 lines (1 loc) 596 B
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");function i(a){let{prefixCls:e,record:d,onExpand:o,expanded:n,expandable:l}=a;const r=`${e}-row-expand-icon`;if(!l)return t.createVNode("span",{class:[r,`${e}-row-spaced`]},null);const c=s=>{o(d,s),s.stopPropagation()};return t.createVNode("span",{class:{[r]:!0,[`${e}-row-expanded`]:n,[`${e}-row-collapsed`]:!n},onClick:c},null)}function p(a,e,d){const o=[];function n(l){(l||[]).forEach((r,c)=>{o.push(e(r,c)),n(r[d])})}return n(a),o}exports.findAllChildrenKeys=p;exports.renderExpandIcon=i;