This website works better with JavaScript.
首頁
探索
說明
登入
public
/
postgrest-mithril
關註
1
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
add util/with_layout.js
master
Bing Sun
5 年之前
父節點
14b9b374c2
當前提交
175bcf5c3a
簽署人:
sunb
GPG Key ID:
F7795F8C590626AB
共有
1 個文件被更改
,包括
15 次插入
和
0 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+15
-0
src/util/with_layout.js
+ 15
- 0
src/util/with_layout.js
查看文件
@@ -0,0 +1,15 @@
export default config => {
if (typeof config == 'undefined')
config = {}
if (!config.hasOwnProperty('content'))
config = {'content': config}
return {
view: vnode => [
config.prologue,
m('main', config.content),
config.epilogue
]
}
}
Write
Preview
Loading…
取消
儲存