ソースを参照

add util/with_layout.js

master
Bing Sun 5年前
コミット
175bcf5c3a
署名者: sunb GPGキーID: F7795F8C590626AB
1個のファイルの変更15行の追加0行の削除
  1. +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
]
}
}

読み込み中…
キャンセル
保存