本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
public
/
postgrest-mithril
關注
1
收藏
0
複製
0
程式碼
問題
0
合併請求
0
版本發佈
0
Wiki
活動
瀏覽代碼
add util/with_layout.js
master
Bing Sun
5 年之前
父節點
14b9b374c2
當前提交
175bcf5c3a
簽署人:
sunb
GPG 金鑰 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…
取消
儲存