dooke/usr/share/dooke/webapp/lib/ui/base/space.js

2 lines
457 B
JavaScript

import{css as e,html as t,Component as a}from"wkit";class s extends a{static styles=e`:host{display:block}.container{--gaps: var(--wc-space-gap, 12px);display:flex;flex-wrap:wrap;align-items:center;width:100%;height:100%;padding:calc(var(--gaps)/2) 0;gap:var(--gaps)}:host([vertical]) .container{flex-direction:column}:host([justify]) .container{justify-content:space-between}`;render(){return t`<div class="container"><slot></slot></div>`}}s.reg("space");
docker 管理面板。
JavaScript 72%
Python 17.4%
CSS 7%
HTML 1.9%
Shell 1.7%