Ver a proveniência

add util/with_layout.js

master
Bing Sun há 5 anos
ascendente
cometimento
175bcf5c3a
Assinados por: sunb ID da chave GPG: F7795F8C590626AB
1 ficheiros alterados com 15 adições e 0 eliminações
  1. +15
    -0
      src/util/with_layout.js

+ 15
- 0
src/util/with_layout.js Ver ficheiro

@@ -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
]
}
}

Carregando…
Cancelar
Guardar