UNPKG

gulu-vue2

Version:

用 Vue2 做的 UI 框架

54 lines (51 loc) 11.9 kB
<!DOCTYPE html> <html lang="en-US"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <title>网格 | 轱辘 UI</title> <meta name="generator" content="VuePress 1.9.7"> <meta name="description" content="一个好用的 UI 框架"> <link rel="preload" href="/gulu-vue2/assets/css/0.styles.8606bcb5.css" as="style"><link rel="preload" href="/gulu-vue2/assets/js/app.0489becd.js" as="script"><link rel="preload" href="/gulu-vue2/assets/js/2.f1b72e70.js" as="script"><link rel="preload" href="/gulu-vue2/assets/js/18.7ad75a27.js" as="script"><link rel="preload" href="/gulu-vue2/assets/js/10.b3cb723a.js" as="script"><link rel="prefetch" href="/gulu-vue2/assets/js/11.e5495829.js"><link rel="prefetch" href="/gulu-vue2/assets/js/12.c53ef19f.js"><link rel="prefetch" href="/gulu-vue2/assets/js/13.8d31745d.js"><link rel="prefetch" href="/gulu-vue2/assets/js/14.c5677d25.js"><link rel="prefetch" href="/gulu-vue2/assets/js/15.999ba418.js"><link rel="prefetch" href="/gulu-vue2/assets/js/16.1bcbd636.js"><link rel="prefetch" href="/gulu-vue2/assets/js/17.1a46b68b.js"><link rel="prefetch" href="/gulu-vue2/assets/js/19.3ea47d1a.js"><link rel="prefetch" href="/gulu-vue2/assets/js/20.0014d694.js"><link rel="prefetch" href="/gulu-vue2/assets/js/21.9d6002e2.js"><link rel="prefetch" href="/gulu-vue2/assets/js/22.1c3ed6a7.js"><link rel="prefetch" href="/gulu-vue2/assets/js/23.71a952f8.js"><link rel="prefetch" href="/gulu-vue2/assets/js/24.b25d935f.js"><link rel="prefetch" href="/gulu-vue2/assets/js/25.a8b50968.js"><link rel="prefetch" href="/gulu-vue2/assets/js/26.f038e661.js"><link rel="prefetch" href="/gulu-vue2/assets/js/3.56737757.js"><link rel="prefetch" href="/gulu-vue2/assets/js/4.f04e4227.js"><link rel="prefetch" href="/gulu-vue2/assets/js/5.1d9468e9.js"><link rel="prefetch" href="/gulu-vue2/assets/js/6.9765cee7.js"><link rel="prefetch" href="/gulu-vue2/assets/js/7.4f5e636d.js"><link rel="prefetch" href="/gulu-vue2/assets/js/8.cd0fbb17.js"><link rel="prefetch" href="/gulu-vue2/assets/js/9.0454796a.js"> <link rel="stylesheet" href="/gulu-vue2/assets/css/0.styles.8606bcb5.css"> </head> <body> <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/gulu-vue2/" class="home-link router-link-active"><!----> <span class="site-name">轱辘 UI</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <!----></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><!----> <ul class="sidebar-links"><li><a href="/gulu-vue2/install/" class="sidebar-link">安装</a></li><li><a href="/gulu-vue2/getStarted/" class="sidebar-link">快速上手</a></li><li><section class="sidebar-group collapsable depth-0"><a href="/gulu-vue2/components/" class="sidebar-heading clickable router-link-active open"><span>组件</span> <span class="arrow down"></span></a> <ul class="sidebar-links sidebar-group-items"><li><a href="/gulu-vue2/components/Button.html" class="sidebar-link">Button - 按钮</a></li><li><a href="/gulu-vue2/components/Input.html" class="sidebar-link">Input - 输入框</a></li><li><a href="/gulu-vue2/components/Grid.html" aria-current="page" class="active sidebar-link">Grid - 网格</a></li><li><a href="/gulu-vue2/components/Layout.html" class="sidebar-link">Layout - 布局</a></li><li><a href="/gulu-vue2/components/Toast.html" class="sidebar-link">Toast - 弹出提示框</a></li><li><a href="/gulu-vue2/components/Tabs.html" class="sidebar-link">Tabs - 标签</a></li><li><a href="/gulu-vue2/components/Popover.html" class="sidebar-link">Popover - 弹出层</a></li><li><a href="/gulu-vue2/components/Collapse.html" class="sidebar-link">Collapse - 手风琴</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="网格"><a href="#网格" class="header-anchor">#</a> 网格</h1> <div data-v-c92004b8><section data-v-c92004b8><p data-v-c92004b8>响应式网格</p> <div class="g-row" style="margin-left:-NaNpx;margin-right:-NaNpx;background-color:#eee;" data-v-0eedeffa data-v-c92004b8><div class="g-col col-24 col-pad-12 col-narrowPc-8 col-pc-6 col-widePc-4" style="padding-left:0px;padding-right:0px;" data-v-4983edab data-v-c92004b8><div style="border:1px solid #aaa;height:50px;text-align:center;line-height:50px;" data-v-4983edab data-v-c92004b8>1</div></div><div class="g-col col-24 col-pad-12 col-narrowPc-8 col-pc-6 col-widePc-4" style="padding-left:0px;padding-right:0px;" data-v-4983edab data-v-c92004b8><div style="border:1px solid #aaa;height:50px;text-align:center;line-height:50px;" data-v-4983edab data-v-c92004b8>2</div></div><div class="g-col col-24 col-pad-12 col-narrowPc-8 col-pc-6 col-widePc-4" style="padding-left:0px;padding-right:0px;" data-v-4983edab data-v-c92004b8><div style="border:1px solid #aaa;height:50px;text-align:center;line-height:50px;" data-v-4983edab data-v-c92004b8>3</div></div><div class="g-col col-24 col-pad-12 col-narrowPc-8 col-pc-6 col-widePc-4" style="padding-left:0px;padding-right:0px;" data-v-4983edab data-v-c92004b8><div style="border:1px solid #aaa;height:50px;text-align:center;line-height:50px;" data-v-4983edab data-v-c92004b8>4</div></div><div class="g-col col-24 col-pad-12 col-narrowPc-8 col-pc-6 col-widePc-4" style="padding-left:0px;padding-right:0px;" data-v-4983edab data-v-c92004b8><div style="border:1px solid #aaa;height:50px;text-align:center;line-height:50px;" data-v-4983edab data-v-c92004b8>5</div></div><div class="g-col col-24 col-pad-12 col-narrowPc-8 col-pc-6 col-widePc-4" style="padding-left:0px;padding-right:0px;" data-v-4983edab data-v-c92004b8><div style="border:1px solid #aaa;height:50px;text-align:center;line-height:50px;" data-v-4983edab data-v-c92004b8>6</div></div></div> <pre data-v-c92004b8><code data-v-c92004b8>&lt;g-row style=&quot;background-color: #eee&quot;&gt; &lt;g-col v-for=&quot;item in 6&quot; :key=&quot;item&quot; span=&quot;24&quot; :pad=&quot;{span: 12}&quot; :narrow-pc=&quot;{span: 8}&quot; :pc=&quot;{span: 6}&quot; :wide-pc=&quot;{span: 4}&quot; &gt; &lt;div style=&quot;border: 1px solid #ccc; height: 50px; text-align: center; line-height: 50px&quot;&gt;{{ item }}&lt;/div&gt; &lt;/g-col&gt; &lt;/g-row&gt;</code></pre></section> <section data-v-c92004b8><p data-v-c92004b8>设置偏移(offset)</p> <div class="g-row" style="margin-left:-NaNpx;margin-right:-NaNpx;background-color:#eee;" data-v-0eedeffa data-v-c92004b8><div class="g-col col-24 col-pad-12 col-narrowPc-4" style="padding-left:0px;padding-right:0px;" data-v-4983edab data-v-c92004b8><div style="border:1px solid #aaa;height:50px;text-align:center;line-height:50px;" data-v-4983edab data-v-c92004b8>1</div></div> <div class="g-col col-24 col-pad-12 col-narrowPc-8 offset-narrowPc-4" style="padding-left:0px;padding-right:0px;" data-v-4983edab data-v-c92004b8><div style="border:1px solid #aaa;height:50px;text-align:center;line-height:50px;" data-v-4983edab data-v-c92004b8>2</div></div> <div class="g-col col-24 col-pad-12 col-narrowPc-4 offset-narrowPc-4" style="padding-left:0px;padding-right:0px;" data-v-4983edab data-v-c92004b8><div style="border:1px solid #aaa;height:50px;text-align:center;line-height:50px;" data-v-4983edab data-v-c92004b8>3</div></div></div> <pre data-v-c92004b8><code data-v-c92004b8>&lt;g-row style=&quot;background-color: #eee&quot;&gt; &lt;g-col span=&quot;24&quot; :pad=&quot;{span: 12}&quot; :narrow-pc=&quot;{span: 4}&quot;&gt; &lt;div style=&quot;border: 1px solid #aaa; height: 50px; text-align: center; line-height: 50px&quot;&gt;1&lt;/div&gt; &lt;/g-col&gt; &lt;g-col span=&quot;24&quot; :pad=&quot;{span: 12}&quot; :narrow-pc=&quot;{span: 8, offset: 4}&quot;&gt; &lt;div style=&quot;border: 1px solid #aaa; height: 50px; text-align: center; line-height: 50px&quot;&gt;2&lt;/div&gt; &lt;/g-col&gt; &lt;g-col span=&quot;24&quot; :pad=&quot;{span: 12}&quot; :narrow-pc=&quot;{span: 4, offset: 4}&quot;&gt; &lt;div style=&quot;border: 1px solid #aaa; height: 50px; text-align: center; line-height: 50px&quot;&gt;3&lt;/div&gt; &lt;/g-col&gt; &lt;/g-row&gt;</code></pre></section> <section data-v-c92004b8><p data-v-c92004b8>设置居中(align)</p> <div class="g-row align-center" style="margin-left:-NaNpx;margin-right:-NaNpx;background-color:#eee;" data-v-0eedeffa data-v-c92004b8><div class="g-col" style="padding-left:0px;padding-right:0px;width:100px;border:1px solid #aaa;height:50px;text-align:center;line-height:50px;" data-v-4983edab data-v-c92004b8>1</div> <div class="g-col" style="padding-left:0px;padding-right:0px;width:100px;border:1px solid #aaa;height:50px;text-align:center;line-height:50px;" data-v-4983edab data-v-c92004b8>2</div></div> <pre data-v-c92004b8><code data-v-c92004b8>&lt;g-row align=&quot;center&quot; style=&quot;background-color: #eee&quot;&gt; &lt;g-col style=&quot;width: 100px; border: 1px solid #aaa; height: 50px; text-align: center; line-height: 50px&quot;&gt;1&lt;/g-col&gt; &lt;g-col style=&quot;width: 100px; border: 1px solid #aaa; height: 50px; text-align: center; line-height: 50px&quot;&gt;2&lt;/g-col&gt; &lt;/g-row&gt;</code></pre></section> <section data-v-c92004b8><p data-v-c92004b8>设置间隙(gutter)</p> <div class="g-row" style="margin-left:-10px;margin-right:-10px;background-color:#eee;" data-v-0eedeffa data-v-c92004b8><div class="g-col col-2 col-pc-6 col-widePc-8" style="padding-left:10px;padding-right:10px;" data-v-4983edab data-v-c92004b8><div style="border:1px solid #aaa;height:50px;text-align:center;line-height:50px;" data-v-4983edab data-v-c92004b8>1</div></div> <div class="g-col col-20 col-pc-12 col-widePc-8" style="padding-left:10px;padding-right:10px;" data-v-4983edab data-v-c92004b8><div style="border:1px solid #aaa;height:50px;text-align:center;line-height:50px;" data-v-4983edab data-v-c92004b8>2</div></div></div> <pre data-v-c92004b8><code data-v-c92004b8>&lt;g-row :gutter=&quot;20&quot; style=&quot;background-color: #eee&quot;&gt; &lt;g-col :span=&quot;2&quot; :pc=&quot;{span: 6}&quot; :wide-pc=&quot;{span: 8}&quot;&gt; &lt;div style=&quot;border: 1px solid #aaa; height: 50px; text-align: center; line-height: 50px&quot;&gt;1&lt;/div&gt; &lt;/g-col&gt; &lt;g-col :span=&quot;20&quot; :pc=&quot;{span: 12}&quot; :wide-pc=&quot;{span: 8}&quot;&gt; &lt;div style=&quot;border: 1px solid #aaa; height: 50px; text-align: center; line-height: 50px&quot;&gt;2&lt;/div&gt; &lt;/g-col&gt; &lt;/g-row&gt;</code></pre></section></div></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><span class="prev"><a href="/gulu-vue2/components/Input.html" class="prev"> Input - 输入框 </a></span> <span class="next"><a href="/gulu-vue2/components/Layout.html"> Layout - 布局 </a></span></p></div> </main></div><div class="global-ui"></div></div> <script src="/gulu-vue2/assets/js/app.0489becd.js" defer></script><script src="/gulu-vue2/assets/js/2.f1b72e70.js" defer></script><script src="/gulu-vue2/assets/js/18.7ad75a27.js" defer></script><script src="/gulu-vue2/assets/js/10.b3cb723a.js" defer></script> </body> </html>